Development Environment | Mac OS X
  • Introduction
  • System
    • Installation
    • System Preferences
    • Applications
  • Console
    • Terms
    • Homebrew
      • Commands
      • Cask
    • iTerm2
      • Zsh
      • Oh My Zsh
  • Git
    • Git
    • Git Aliases
    • Github
  • NodeJs
    • NodeJs
    • npm
  • IDE
    • Visual Studio Code
  • Cheatsheet
    • Terminal
Powered by GitBook
On this page
  1. Git

Git Aliases

Aliases

Alias

Command

g

git

ga

git add

gaa

git add --all

gb

git branch

gba

git branch -a

gbnm

git branch --no-merged

gc

git commit -v

gc!

git commit -v --amend

gca

git commit -v -a

gcam

git commit -a -m

gca!

git commit -v -a --amend

gcan!

git commit -v -a -s --no-edit --amend

gcb

git checkout -b

gcf

git config --list

gcl

git clone --recursive

gclean

git clean -df

gcm

git checkout master

gcmsg

git commit -m

gco

git checkout

gcount

git shortlog -sn

gcp

git cherry-pick

gcpa

git cherry-pick --abort

gcpc

git cherry-pick --continue

gcs

git commit -S

gd

git diff

gdca

git diff --cached

gf

git fetch

gfo

git fetch origin

ggf

git push --force origin $(current_branch)

ghh

git help

gl

git pull

glg

git log --stat --color

glgg

git log --graph --color

glgga

git log --graph --decorate --all

glgm

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

glgp

git log --stat --color -p

glo

git log --oneline --decorate --color

glog

git log --oneline --decorate --color --graph

glol

git log --graph --pretty = format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit

glola

git log --graph --pretty = format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --all

gm

git merge

gmom

git merge origin/master

gp

git push

gpv

git push -v

gr

git remote

gra

git remote add

grb

git rebase

grba

git rebase --abort

grbc

git rebase --continue

grbi

git rebase -i

grbm

git rebase master

grbs

git rebase --skip

grh

git reset HEAD

grhh

git reset HEAD --hard

grmv

git remote rename

grrm

git remote remove

grset

git remote set-url

grv

git remote -v

gsb

git status -sb

gsps

git show --pretty = short --show-signature

gss

git status -s

gst

git status

gsta

git stash save

gstaa

git stash apply

gstd

git stash drop

gstl

git stash list

gstp

git stash pop

gstc

git stash clear

gsts

git stash show --text

gts

git tag -s

gup

git pull --rebase

gupv

git pull --rebase -v

gvt

git verify-tag

PreviousGitNextGithub

Last updated 6 years ago