GitLab

作者: yuanweiphone | 来源:发表于2017-07-11 14:20 被阅读13次

GitLab的一些命令使用

1、配置
git config --global user.name "username"
git config --global user.email "email"
cd  project path
git init
git remote add origin http://xxxxx
git add .
git commit -m "first commit"
git push 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 地址

相关文章

网友评论

      本文标题:GitLab

      本文链接:https://www.haomeiwen.com/subject/xwfmhxtx.html