Skip to content

Instantly share code, notes, and snippets.

@victorphamdeveloper
Forked from AdamMarsden/zshgit.md
Created March 2, 2017 07:03
Show Gist options
  • Save victorphamdeveloper/2f54e45cfdfa5b08ea9ab658c0404601 to your computer and use it in GitHub Desktop.
Save victorphamdeveloper/2f54e45cfdfa5b08ea9ab658c0404601 to your computer and use it in GitHub Desktop.

Revisions

  1. @AdamMarsden AdamMarsden revised this gist Aug 15, 2014. 1 changed file with 48 additions and 3 deletions.
    51 changes: 48 additions & 3 deletions zshgit.md
    Original file line number Diff line number Diff line change
    @@ -9,48 +9,93 @@
    `gup``git pull --rebase`

    `gp``git push`

    `gd``git diff`

    `gdc``git diff --cached`

    `gdv``git diff -w "$@" | view -`

    `gc``git commit -v`
    `gc!` `– git commit -v --amend`

    `gc!``git commit -v --amend`

    `gca``git commit -v -a`
    `gca!` `– git commit -v -a --amend`

    `gca!``git commit -v -a --amend`

    `gcmsg``git commit -m`

    `gco``git checkout`

    `gcm``git checkout master`

    `gr``git remote`

    `grv``git remote -v`

    `grmv``git remote rename`

    `grrm``git remote remove`

    `gsetr``git remote set-url`

    `grup``git remote update`

    `grbi``git rebase -i`

    `grbc``git rebase --continue`

    `grba``git rebase --abort`

    `gb``git branch`

    `gba``git branch -a`

    `gcount``git shortlog -sn`

    `gcl``git config --list`

    `gcp``git cherry-pick`

    `glg``git log --stat --max-count=10`

    `glgg``git log --graph --max-count=10`

    `glgga``git log --graph --decorate --all`

    `glo``git log --oneline --decorate --color`

    `glog``git log --oneline --decorate --color --graph`

    `gss``git status -s`

    `ga``git add`

    `gm``git merge`

    `grh``git reset HEAD`

    `grhh``git reset HEAD --hard`

    `gclean``git reset --hard && git clean -dfx`

    `gwc``git whatchanged -p --abbrev-commit --pretty=medium`

    `gsts``git stash show --text`

    `gsta``git stash`

    `gstp``git stash pop`

    `gstd``git stash drop`

    `ggpull``git pull origin $(current_branch)`

    `ggpur``git pull --rebase origin $(current_branch)`

    `ggpush``git push origin $(current_branch)`

    `ggpnp``git pull origin $(current_branch) && git push origin $(current_branch)`
    `glp``_git_log_prettily`

    `glp``_git_log_prettily`
  2. @AdamMarsden AdamMarsden revised this gist Aug 15, 2014. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions zshgit.md
    Original file line number Diff line number Diff line change
    @@ -1,9 +1,13 @@
    #Oh My Zsh - Git Cheat Sheet

    `g``git`

    `gst``git status`

    `gl``git pull`

    `gup``git pull --rebase`

    `gp``git push`
    `gd``git diff`
    `gdc``git diff --cached`
  3. @AdamMarsden AdamMarsden renamed this gist Aug 15, 2014. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  4. @AdamMarsden AdamMarsden revised this gist Aug 15, 2014. 1 changed file with 52 additions and 52 deletions.
    104 changes: 52 additions & 52 deletions zshgit
    Original file line number Diff line number Diff line change
    @@ -1,52 +1,52 @@
    Oh My Zsh - Git Cheat Sheet

    g – git
    gst – git status
    gl – git pull
    gup – git pull --rebase
    gp – git push
    gd – git diff
    gdc – git diff --cached
    gdv – git diff -w "$@" | view -
    gc – git commit -v
    gc! – git commit -v --amend
    gca – git commit -v -a
    gca! – git commit -v -a --amend
    gcmsg – git commit -m
    gco – git checkout
    gcm – git checkout master
    gr – git remote
    grv – git remote -v
    grmv – git remote rename
    grrm – git remote remove
    gsetr – git remote set-url
    grup – git remote update
    grbi – git rebase -i
    grbc – git rebase --continue
    grba – git rebase --abort
    gb – git branch
    gba – git branch -a
    gcount – git shortlog -sn
    gcl – git config --list
    gcp – git cherry-pick
    glg – git log --stat --max-count=10
    glgg – git log --graph --max-count=10
    glgga – git log --graph --decorate --all
    glo – git log --oneline --decorate --color
    glog – git log --oneline --decorate --color --graph
    gss – git status -s
    ga – git add
    gm – git merge
    grh – git reset HEAD
    grhh – git reset HEAD --hard
    gclean – git reset --hard && git clean -dfx
    gwc – git whatchanged -p --abbrev-commit --pretty=medium
    gsts – git stash show --text
    gsta – git stash
    gstp – git stash pop
    gstd – git stash drop
    ggpull – git pull origin $(current_branch)
    ggpur – git pull --rebase origin $(current_branch)
    ggpush – git push origin $(current_branch)
    ggpnp – git pull origin $(current_branch) && git push origin $(current_branch)
    glp – _git_log_prettily
    #Oh My Zsh - Git Cheat Sheet
    `g``git`
    `gst``git status`
    `gl``git pull`
    `gup``git pull --rebase`
    `gp``git push`
    `gd``git diff`
    `gdc``git diff --cached`
    `gdv``git diff -w "$@" | view -`
    `gc``git commit -v`
    `gc!` `– git commit -v --amend`
    `gca``git commit -v -a`
    `gca!` `– git commit -v -a --amend`
    `gcmsg``git commit -m`
    `gco``git checkout`
    `gcm``git checkout master`
    `gr``git remote`
    `grv``git remote -v`
    `grmv``git remote rename`
    `grrm``git remote remove`
    `gsetr``git remote set-url`
    `grup``git remote update`
    `grbi``git rebase -i`
    `grbc``git rebase --continue`
    `grba``git rebase --abort`
    `gb``git branch`
    `gba``git branch -a`
    `gcount``git shortlog -sn`
    `gcl``git config --list`
    `gcp``git cherry-pick`
    `glg``git log --stat --max-count=10`
    `glgg``git log --graph --max-count=10`
    `glgga``git log --graph --decorate --all`
    `glo``git log --oneline --decorate --color`
    `glog``git log --oneline --decorate --color --graph`
    `gss``git status -s`
    `ga``git add`
    `gm``git merge`
    `grh``git reset HEAD`
    `grhh``git reset HEAD --hard`
    `gclean``git reset --hard && git clean -dfx`
    `gwc``git whatchanged -p --abbrev-commit --pretty=medium`
    `gsts``git stash show --text`
    `gsta``git stash`
    `gstp``git stash pop`
    `gstd``git stash drop`
    `ggpull``git pull origin $(current_branch)`
    `ggpur``git pull --rebase origin $(current_branch)`
    `ggpush``git push origin $(current_branch)`
    `ggpnp``git pull origin $(current_branch) && git push origin $(current_branch)`
    `glp``_git_log_prettily`
  5. @AdamMarsden AdamMarsden created this gist Aug 15, 2014.
    52 changes: 52 additions & 0 deletions zshgit
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,52 @@
    Oh My Zsh - Git Cheat Sheet

    g – git
    gst – git status
    gl – git pull
    gup – git pull --rebase
    gp – git push
    gd – git diff
    gdc – git diff --cached
    gdv – git diff -w "$@" | view -
    gc – git commit -v
    gc! – git commit -v --amend
    gca – git commit -v -a
    gca! – git commit -v -a --amend
    gcmsg – git commit -m
    gco – git checkout
    gcm – git checkout master
    gr – git remote
    grv – git remote -v
    grmv – git remote rename
    grrm – git remote remove
    gsetr – git remote set-url
    grup – git remote update
    grbi – git rebase -i
    grbc – git rebase --continue
    grba – git rebase --abort
    gb – git branch
    gba – git branch -a
    gcount – git shortlog -sn
    gcl – git config --list
    gcp – git cherry-pick
    glg – git log --stat --max-count=10
    glgg – git log --graph --max-count=10
    glgga – git log --graph --decorate --all
    glo – git log --oneline --decorate --color
    glog – git log --oneline --decorate --color --graph
    gss – git status -s
    ga – git add
    gm – git merge
    grh – git reset HEAD
    grhh – git reset HEAD --hard
    gclean – git reset --hard && git clean -dfx
    gwc – git whatchanged -p --abbrev-commit --pretty=medium
    gsts – git stash show --text
    gsta – git stash
    gstp – git stash pop
    gstd – git stash drop
    ggpull – git pull origin $(current_branch)
    ggpur – git pull --rebase origin $(current_branch)
    ggpush – git push origin $(current_branch)
    ggpnp – git pull origin $(current_branch) && git push origin $(current_branch)
    glp – _git_log_prettily