- oh-my-zsh git plugin : https://github.com/ohmyzsh/ohmyzsh/blob/master/plugins/git/README.md
zsh 쉘 설정
~/.zshrc
파일을 열고 플러그인 란에 git
을 추가한다.... # Which plugins would you like to load? # Standard plugins can be found in $ZSH/plugins/ # Custom plugins may be added to $ZSH_CUSTOM/plugins/ # Example format: plugins=(rails git textmate ruby lighthouse) # Add wisely, as too many plugins slow down shell startup. plugins=(git zsh-autosuggestions) # 괄호 안에 git을 추가한다. ...
Aliases
내가 자주 쓰는 명령어
ggp
:git push origin $(current_branch)
💡
있던 것들이
deprecated
되기도 하므로, 공식문서를 참고하는게 더 좋음git plugin - aliases
Alias
Command
git
git add
git add --all
git add --patch
git add --update
git add --verbose
git apply
git apply --3way
git branch
git branch -a
git branch -d
git branch --no-color --merged | grep -vE "^([+]|\s($(git_main_branch)|$(git_develop_branch))\s*$)" | xargs git branch -d 2>/dev/null
git branch -D
git blame -b -w
git branch --no-merged
git branch --remote
git bisect
git bisect bad
git bisect good
git bisect reset
git bisect start
git commit -v
git commit -v --amend
git commit -v --no-edit --amend
git commit -v -a
git commit -v -a --amend
git commit -v -a --no-edit --amend
git commit -v -a -s --no-edit --amend
git commit -a -m
git commit -a -s
git commit -a -s -m
git commit -s -m
git checkout -b
git config --list
git clone --recurse-submodules
git clone --recurse-submodules "$@" && cd "$(basename $_ .git)"
git clean -id
git reset --hard && git clean -dffx
git checkout $(git_main_branch)
git checkout $(git_develop_branch)
git commit -m
git checkout
git checkout --recurse-submodules
git shortlog -sn
git cherry-pick
git cherry-pick --abort
git cherry-pick --continue
git commit -S
git diff
git diff --cached
git diff --cached --word-diff
git describe --tags $(git rev-list --tags --max-count=1)
git diff --staged
git diff-tree --no-commit-id --name-only -r
git diff $@ ":(exclude)package-lock.json" ":(exclude)*.lock"
git diff @{upstream}
git diff -w $@ | view -
git diff --word-diff
git fetch
git fetch --all --prune
git ls-files | grep
git fetch origin
git gui citool
git gui citool --amend
git push --force origin $(current_branch)
git push --force-with-lease origin $(current_branch)
git pull origin $(current_branch)
git push origin $(current_branch)
ggl && ggp
git pull origin "$(git_current_branch)"
ggu
git push origin "$(git_current_branch)"
git branch --set-upstream-to=origin/$(git_current_branch)
git pull --rebase origin $(current_branch)
git push --set-upstream origin $(git_current_branch)
git help
git update-index --assume-unchanged
git ls-files -v | grep "^[[:lower:]]"
git svn dcommit && git push github $(git_main_branch):svntrunk
gitk --all --branches &!
gitk --all $(git log -g --pretty=%h) &!
git pull
git log --stat
git log --stat -p
git log --graph
git log --graph --decorate --all
git log --graph --max-count=10
git log --oneline --decorate
git log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ar) %C(bold blue)<%an>%Creset'
git log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ar) %C(bold blue)<%an>%Creset' --stat
git log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ad) %C(bold blue)<%an>%Creset'
git log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ad) %C(bold blue)<%an>%Creset' --date=short
git log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ar) %C(bold blue)<%an>%Creset' --all
git log --oneline --decorate --graph
git log --oneline --decorate --graph --all
git log --pretty=<format>
git merge
git merge origin/$(git_main_branch)
git mergetool --no-prompt
git mergetool --no-prompt --tool=vimdiff
git merge upstream/$(git_main_branch)
git merge --abort
git push
git push --dry-run
git push --force-with-lease
git push --force
git push origin --all && git push origin --tags
git pull --rebase
git push upstream
git push -v
git remote
git remote add
git rebase
git rebase --abort
git rebase --continue
git rebase $(git_develop_branch)
git rebase -i
git rebase $(git_main_branch)
git rebase origin/$(git_main_branch)
git rebase --onto
git rebase --skip
git revert
git reset
git reset --hard
git reset origin/$(git_current_branch) --hard
git rm
git rm --cached
git remote rename
git remote remove
git restore
git remote set-url
git restore --source
git restore --staged
cd "$(git rev-parse --show-toplevel || echo .)"
git reset --
git remote update
git remote -v
git status -sb
git svn dcommit
git show
git submodule init
git show --pretty=short --show-signature
git svn rebase
git status -s
git status
git stash push
git stash save
git stash apply
git stash clear
git stash drop
git stash list
git stash pop
git stash show --text
git stash --include-untracked
git stash --all
git submodule update
git switch
git switch -c
git switch $(git_main_branch)
git switch $(git_develop_branch)
git tag -s
git tag | sort -V
gtl(){ git tag --sort=-v:refname -n -l ${1}* }; noglob gtl
git update-index --no-assume-unchanged
git log -n 1 | grep -q -c "--wip--" && git reset HEAD~1
git pull --rebase
git pull --rebase -v
git pull --rebase --autostash
git pull --rebase --autostash -v
git pull --rebase origin $(git_main_branch)
git pull --rebase=interactive origin $(git_main_branch)
git pull upstream $(git_main_branch)
git whatchanged -p --abbrev-commit --pretty=medium
git add -A; git rm $(git ls-files --deleted) 2> /dev/null; git commit --no-verify --no-gpg-sign -m "--wip-- [skip ci]"
git am
git am --continue
git am --skip
git am --abort
git am --show-current-patch