📌  相关文章
📜  与另一个分支同步分支 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:49:56.587000             🧑  作者: Mango

代码示例1
// Main/ master branch.
$ git add .
$ git status                       // to see what changes are going to be commited
$ git commit -m 'Some descriptive commit message'
$ git push origin 

// Branch that you want to sync with main/ master branch.
$ git checkout      // go to  that is ment to be synced with 
$ git rebase               // bring  up to date with 
$ git push origin  // commit the changes
$ git checkout             // return to