Git 之常用设置


1 git config --global "FNR_S"
3 git config --global
5 git config --global credential.helper manager


# make an alias for "long listing" (double lower Case L):    
git config --global alias.ll "log --oneline --decorate --graph --all"
# use notepad++ for commit Messages, rebase Control etc.:    
git config --global core.editor "'C:/app/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin"
# make git to remove local copies of tags/branches that are no more available on the remote:    
git config –global fetch.prune true
# force a rebase instead of merge whenever you pull    
git config –global pull.rebase true


  • 配置BCompare为diff工具:
  • git config --global diff.guitool bc4
    git config --global difftool.bc4.path "C:/app/Tools/Beyond Compare 4/BCompare.exe"
    git config --global difftool.bc4.trustExitCode false


  • 配置BCompare为merge工具:
  • git config --global merge.tool bc4
    git config --global mergetool.bc4.path "C:/app/Tools/Beyond Compare 4/BCompare.exe"
    git config --global mergetool.bc4.trustExitCode false


posted @ 2020-06-09 13:32  无极至上  阅读(182)  评论(0编辑  收藏  举报