We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Given a branch foo and a remote upstream: As of Git 1.8.0: git branch -u upstream/foo
git branch -u upstream/foo
删除本地分支 git branch -d <branch> 强制删除本地分支 git branch -D <branch> 删除远程分支 git push origin --delete <branch>
git branch -d <branch>
git branch -D <branch>
git push origin --delete <branch>
创建并查看 <new-branch>,-b 选项是一个方便的标记,告诉 Git 在运行 git checkout <new-branch> 之前运行 git branch <new-branch> git checkout -b <new-branch>
<new-branch>
-b
git checkout <new-branch>
git branch <new-branch>
git checkout -b <new-branch>
相关资料 Git Basics - Tagging
创建 tag
git tag <tagname>
git push origin <tagname>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
本地分支关联远程分支 详细
Given a branch foo and a remote upstream:
As of Git 1.8.0:
git branch -u upstream/foo
删除分支 详细
删除本地分支
git branch -d <branch>
强制删除本地分支
git branch -D <branch>
删除远程分支
git push origin --delete <branch>
创建分支
创建并查看
<new-branch>
,-b
选项是一个方便的标记,告诉 Git 在运行git checkout <new-branch>
之前运行git branch <new-branch>
git checkout -b <new-branch>
Tag
相关资料
Git Basics - Tagging
创建 tag
The text was updated successfully, but these errors were encountered: