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
配置命令别名:
配置命令别名
git config --system alias.{short name} {origin name}
列出所有别名配置:
列出所有别名配置
git config --get-regexp alias
打标签:
打标签
git tag {tagname}
git tag -a {tagname} -m {annotation}
git push origin {tagname}
git push origin --tags
重命名分支:
重命名分支
git branch -m {oldname} {newname}
git branch -m {newname}
删除文件:
删除文件
git rm {file name}
git rm --cached {file name}
删除远程不存在的本地分支引用:
删除远程不存在的本地分支引用
git fetch -p
合并最近n次提交:
合并最近n次提交
git rebase --interactive HEAD~n http://stackoverflow.com/questions/2563632/how-can-i-merge-two-commits-into-one
git rebase --interactive HEAD~n
git status
git config --global core.quotepath false
The text was updated successfully, but these errors were encountered:
No branches or pull requests
git小记
命令:
配置命令别名
:列出所有别名配置
:打标签
:git tag {tagname}
git tag -a {tagname} -m {annotation}
git push origin {tagname}
git push origin --tags
重命名分支
:git branch -m {oldname} {newname}
git branch -m {newname}
删除文件
:git rm {file name}
git rm --cached {file name}
删除远程不存在的本地分支引用
:合并最近n次提交
:配置相关
问题
git status
乱码git config --global core.quotepath false
The text was updated successfully, but these errors were encountered: