git
git书籍
工具
zsh增强git
zsh bug
git show HEAD^
^显示找不到 使用\^转义或者引号扩起来
git show HEAD\^ or git show 'HEAD^'
https://github.com/olivierverdier/zsh-git-prompt
配置方法
---
新建文件夹 ~/.zsh/git-prompt
将项目里面的 gitstatus.py zshrc.sh cp到这个文件夹里
编辑你的 zshrc
# source ~/.zsh/git-prompt/zshrc.sh
source /home/duoduo/.zsh/git-prompt/zshrc.sh
PROMPT='%B%m%~%b$(git_super_status)%# '
或者更简单的方法使用oh-my-zsh
https://github.com/robbyrussell/oh-my-zshgit 配置
ssh不用输入密码直接push
修改所有commit的作者信息author
删除所有分支中的大文件
git ssh_key 用xclip粘贴
把master移动到HEAD
git branch
git diff
git add -i
git commit
git remote
git 抓回远程分支
git 新建分支
git 删除远程分支
fast-forwards
git ..
git rebase
git log
git stash
git reflog
git grep
git 删除所有已经合并的本地分支
git blame
git bisect查找那次提交里面有坏代码
取消对文件的修改
标签
git自带web
git 和python
git 不使用中文
git强切分支
git安装github的项目
让分支的历史归零
查出两个commit中的所有作者
Last updated