# 第一次提交git的时候
# git全局设置
git config --global user.name "daiyp"
git config --global user.email "daiyp@qq.com"
# 创建git仓库
mkdir datax
cd datax
git init
touch README.md
git add README.md
git commit -m 'first commit'
git remote add origin ssh://git@gitlab.qq.com:8022/dyp/datax.git
git push -u origin master
# 已有仓库
cd datax
git remote add origin ssh://git@gitlab.qq.com:8022/dyp/datax.git
git push -u origin master
# 加了参数-u后,以后即可直接用git push代替git push origin master
# 克隆代码库
git clone ssh://daiyp@gitlab.qq.com:8022/dyp/datax.git qq/dyp/datax && git config -f qq/dyp/datax/.git/config user.name daiyp && git config -f qq/dyp/datax/.git/config user.email daiyp@qq.com