Git branch renaming and project submission

git 分支重命名:

如果你在需要重命名的分支上面:

git branch -m new branch name

如果你不在需要重命名的分支上面:

git branch -m old branch name new branch name

Rename the remote branch name

git push origin : old branch name new branch name

Resume link between local branch and remote branch

git push origin -u new branch name 

 

git project commit and branch merge:

stage all changes

git add .

Commit project + description of the commit

git commit -m "commit description" 

Push the project to the remote end

git push origin branchname 

Project merging (pull the remote branch and merge it into your own branch)

git pull origin remote branch 

おすすめ

転載: blog.csdn.net/weixin_44510655/article/details/126304352