Skip to content

Instantly share code, notes, and snippets.

@shangdev
Last active April 15, 2019 07:08
Show Gist options
  • Save shangdev/cad1453fa8d96f1f6af75d4e18a0516d to your computer and use it in GitHub Desktop.
Save shangdev/cad1453fa8d96f1f6af75d4e18a0516d to your computer and use it in GitHub Desktop.

Revisions

  1. shangdev revised this gist Apr 15, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion git-alias-for-bashrc-or-zshrc
    Original file line number Diff line number Diff line change
    @@ -13,5 +13,5 @@ alias gp="git push"
    alias gl="git log --graph"
    alias gll="git log --graph --abbrev-commit --decorate --all --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(dim white) - %an%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n %C(white)%s%C(reset)'"

    $ 应用
    # 应用
    source ./.bashrc
  2. shangdev revised this gist Apr 15, 2019. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion git-alias-for-bashrc-or-zshrc
    Original file line number Diff line number Diff line change
    @@ -11,4 +11,7 @@ alias gc="git commit -m "
    alias gaa="git add ."
    alias gp="git push"
    alias gl="git log --graph"
    alias gll="git log --graph --abbrev-commit --decorate --all --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(dim white) - %an%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n %C(white)%s%C(reset)'"
    alias gll="git log --graph --abbrev-commit --decorate --all --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(dim white) - %an%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n %C(white)%s%C(reset)'"

    $ 应用
    source ./.bashrc
  3. shangdev renamed this gist Dec 12, 2018. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  4. shangdev created this gist Nov 20, 2018.
    14 changes: 14 additions & 0 deletions git-alias
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    # rc 表示 run command (运行命令)

    # for zsh
    $ vi ~/.zshrc

    # for bash
    $ vi ~/.bashrc

    alias gs="git status"
    alias gc="git commit -m "
    alias gaa="git add ."
    alias gp="git push"
    alias gl="git log --graph"
    alias gll="git log --graph --abbrev-commit --decorate --all --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(dim white) - %an%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n %C(white)%s%C(reset)'"