我的一些命令行配置

我的一些命令行配置

目前采用一个仓库维护效率相关的工具和文章

gitconfig

.gitconfig

[user]
	email = xxx@qq.com
	name = xyz
[core]
	autocrlf = true
[alias]
    fb = !sh -c \"git branch -a | grep -v remotes | grep $1 | head -n 1 | xargs git checkout\"

    co = checkout 

    ci = commit 
    
    st = status 
    
    pl = pull 
    
    ps = push 
    
    dt = difftool 
    
    l = log --stat 
    
    cp = cherry-pick 
    
    ca = commit -a 
    
    b = branch

    gu = ls-files . --exclude-standard --others
      
    sl = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative --all --since='90 days ago'
  
    summary = show  # Mercurial crib

[color]
        diff = auto
        status = auto
        branch = auto
        interactive = auto
        ui = true
        pager = true

[color "branch"]
        current = yellow reverse
        local = yellow
        remote = green

[color "diff"]
        meta = yellow bold
        frag = magenta bold
        old = red bold
        new = green bold

[color "status"]
        added = yellow
        changed = green
        untracked = cyan

bashrc

.bashrc

alias start_proxy="export https_proxy=http://127.0.0.1:1080"
alias stop_proxy="unset https_proxy"

Reference


本博客所有文章除特别声明外,均采用 CC BY-SA 4.0 协议 ,转载请注明出处!