通过命令行使用git
- 创建
git add remote origin https://github.com/xxx
git pull
常用操作:
git add .
git commit -m "start 2018-06-06"
git push origin master
- 出现
fatal: refusing to merge unrelated histories
git pull origin master --allow-unrelated-histories
4.创建并切换分支
git checkout -b xxx
5.查看分支
git branch
网友评论