Git Commands Notes

Posted quanben

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Git Commands Notes相关的知识,希望对你有一定的参考价值。

 

Push

Push changes to remote. (If the remote doesn‘t have the branch, the branch will be created)

git push <remote name> <branch name>

 

Renaming a branch (a complete version of push command)

This can delete a  remote branch by providing empty local branch name.

git push <remote name> <local branch name>:<remote branch name>

References:

https://help.github.com/articles/pushing-to-a-remote/

http://stackoverflow.com/questions/2765421/push-a-new-local-branch-to-a-remote-git-repository-and-track-it-too

 

以上是关于Git Commands Notes的主要内容,如果未能解决你的问题,请参考以下文章

markdown PHPExcel Notes和代码片段

Git Commands

markdown git命令#git #commands

Some notes

markdown [Git命令]一个基本的git命令#git #commands

VSCode自定义代码片段——git命令操作一个完整流程