【工具】git创建并同步仓库

2019-10-17  本文已影响0人  giraffecode9668

通过命令行使用git

  1. 创建
git add remote origin https://github.com/xxx  
git pull

常用操作:

git add .
git commit -m "start 2018-06-06"
git push origin master
  1. 出现
    fatal: refusing to merge unrelated histories
git pull origin master --allow-unrelated-histories

4.创建并切换分支

git checkout -b xxx

5.查看分支

git branch
上一篇 下一篇

猜你喜欢

热点阅读