在命令行,
git pull 有沖突的話,到源代碼手動(dòng)刪除沖突的代碼
git commit 查看已經(jīng)修改的沖突,:wq保存并退出。
git add .
git commit
git push origin master
現(xiàn)在你想切換分支,但是你還不想提交你正在進(jìn)行中的工作;所以你儲(chǔ)藏這些變更。為了往堆棧推送一個(gè)新的儲(chǔ)藏,只要運(yùn)行
git stash
運(yùn)行 git stash pop
來重新應(yīng)用儲(chǔ)藏,同時(shí)立刻將其從堆棧中移走。
git pull --rebase upstream master
git blame lib/tasks/send_mail.rb
查看某個(gè)文件由哪個(gè)人修改 創(chuàng)建
git diff
你對(duì)git 文件修改了什么