1)有兩個相關的branchgit
github下載的repo有master和work兩個分支,因爲遠端已經更新,master分支落後於遠端分支,work分支又有新的更新內容,須要將遠端master分支的更新pull下來,而且和work分支進行合併。github
1)有兩個相關的branchurl
clone下來reporem
1.git remote set-url origin https://...get
2.git pullit
3.git checkout -b new_branchio
4.git merge workast
5.git push下載
6. git diff new_branch..master 或者 git diff new_branch...masterstackoverflow