
Git
文章平均质量分 52
wzq2009
这个作者很懒,什么都没留下…
展开
-
git代理设置
分辨需要设置的代理HTTP 形式:git clone https://github.com/owner/git.gitSSH 形式:git clone git@github.com:owner/git.git一、HTTP 形式走 HTTP 代理git config --global http.proxy "http://127.0.0.1:8080"git config --global https.proxy "http://127.0.0.1:8080"走 socks原创 2021-03-11 21:27:46 · 360 阅读 · 0 评论 -
git 永久删除大文件
git loggit log --graph --decorate --oneline --simplify-by-decoration --all说明:–decorate 标记会让git log显示每个commit的引用(如:分支、tag等)–oneline 一行显示–simplify-by-decoration 只显示被branch或tag引用的commit–all 表示显示所有的branch,这里也可以选择,比如我指向显示分支ABC的关系,则将–all替换为branchA branchB原创 2020-07-20 15:19:03 · 1093 阅读 · 1 评论 -
How to recover deleted remote branch in Git
恢复已删除分支git fsck --full --no-reflogs --unreachable --lost-found | grep commit | cut -d\ -f3 | xargs -n 1 git log -n 1 --pretty=onelinegitk --reflog转载 2020-02-18 19:07:22 · 295 阅读 · 0 评论 -
终端显示git分支
Git branch in prompt.修改/etc/bashrc文件parse_git_branch() { git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'}export PS1="\u@\h \W\[\033[32m\]\$(parse_git_branch)\[\033[00m\] ...原创 2020-02-18 11:15:24 · 300 阅读 · 0 评论 -
Rename a local and remote branch in git
Rename a local and remote branch in gitIf you have named a branch incorrectly AND pushed this to the remote repository follow these steps before any other developers get a chance to jump on you and g...转载 2019-12-29 21:15:46 · 200 阅读 · 0 评论