多臺電腦上進行開發(fā)的時候需要用github進行同步
查看遠(yuǎn)程分支
git remote -v
origin https://github.com/Link-yu/FlaskProject.git (fetch)
origin https://github.com/Link-yu/FlaskProject.git (push
從遠(yuǎn)程獲取最新版本到本地
git fetch origin master:temp
比較本地倉庫與下載的temp分支
git diff temp
#q可以退出比較diff
合并temp分支到本地的master分支
git merge temp
刪除temp分支
git branch -d temp