GitLab的一些命令使用
1、配置
git config --global user.name "username"
git config --global user.email "email"
cd project path
git init
git add .
git commit -m "first commit"
git remote add origin http://xxxxx
git push -u origin master
出现fatal: remote origin already exists错误时
git remote remove origin
出现fatal: refusing to merge unrelated histories
git pull origin master ----allow-unrelated-histories
2、clone
cd 到要下载文件的位置,然后git clone 地址