Last active
February 5, 2021 04:51
-
-
Save weaming/aa46c23e20282d1fb5a4140f35d72531 to your computer and use it in GitHub Desktop.
Revisions
-
weaming revised this gist
Dec 7, 2020 . 1 changed file with 10 additions and 11 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,21 +1,19 @@ alias gcl='git clone' alias gs='git status' alias gd='git diff' alias gdc='git diff --cached' alias gl='git lg' alias gps='git push -u' alias gconf='vi .git/config' alias gamend='git commit --amend' alias gamendy='git commit --amend --no-edit' alias gback='git reset --hard HEAD~' alias gpl='git pull && git submodule update --init' alias gplr='git pull --rebase' alias gplp='git pull --prune' alias gplpr='git pull --prune --rebase' alias gss='git show --name-status' alias gdiff='git diff --no-index' alias gdl='git diff HEAD~' alias gdn='git diff --name-only' alias ga='git add -A' @@ -39,7 +37,8 @@ alias grb='git rebase' alias grbc='git rebase --continue' alias grba='git rebase --abort' alias gclean='git clean -id' alias greset='git reset --hard' alias git-head-hash='git log --pretty=format:"%h" --abbrev=7 -n 1' alias git-tags-with-timestamp='git log --tags --simplify-by-decoration --pretty="format:%ci %d" | grep tag | sed "s/[(),]//g" | sed "s/tag: //g" | less' alias gamend-with-author-weaming='git commit --no-edit --amend --author "weaming <[email protected]>"' -
weaming created this gist
Dec 7, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,45 @@ alias gconf='vi .git/config' alias gamend='git commit --amend' alias gamendy='git commit --amend --no-edit' alias gamend-with-author-weaming='git commit --no-edit --amend --author "weaming <[email protected]>"' alias gback='git reset --hard HEAD~' alias gl='git lg' alias gcl='git clone' alias gpl='git pull && git submodule update --init' alias gplr='git pull --rebase' alias gplp='git pull --prune' alias gplpr='git pull --prune --rebase' alias gcl='git clone' alias gps='git push -u' alias gs='git status' alias gss='git show --name-status' alias gd='git diff' alias gdiff='git diff --no-index' alias gdc='git diff --cached' alias gdl='git diff HEAD~' alias gdn='git diff --name-only' alias ga='git add -A' alias gm='git commit -m' alias gma='git commit -am' alias gmerge='git merge --no-ff' alias gb='git branch' alias gbc='git branch --contains' alias gc='git checkout' alias gra='git remote add' alias grr='git remote rm' alias grv='git remote -v' alias grl='git remote get-url (git remote)' alias grlc='grl | pbcopy' alias gtam='git tag -a -m' alias gtags='git tag -n99 --sort v:refname -l' alias gf='git reflog' alias gcp='git cherry-pick' alias gcpf='git cherry-pick --strategy-option theirs' alias grb='git rebase' alias grbc='git rebase --continue' alias grba='git rebase --abort' alias gclean='git clean -id' alias git-tags-with-timestamp='git log --tags --simplify-by-decoration --pretty="format:%ci %d" | grep tag | sed "s/[(),]//g" | sed "s/tag: //g" | less' alias greset='git reset --hard' alias git-head-hash='git log --pretty=format:"%h" --abbrev=7 -n 1'