You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
alias gll='git log --graph --pretty=oneline --abbrev-commit'
79
83
alias gnew='git log HEAD@{1}..HEAD@{0}'# Show commits since last pull, see http://blogs.atlassian.com/2014/10/advanced-git-aliases/
80
84
alias gwc='git whatchanged'
85
+
alias ghist='git log --pretty=format:'\''%h %ad | %s%d [%an]'\'' --graph --date=short'# Use it to be fast and without color.
86
+
alias gprogress='git log --pretty=format:'\''%C(yellow)%h %Cblue%ad %Creset%s%Cgreen [%cn] %Cred%d'\'' --decorate --date=short'#Usually use "git progress" in the file .gitconfig. The new alias from Git friends will be truly welcome.
81
87
82
88
# ls-files
83
89
alias gu='git ls-files . --exclude-standard --others'# Show untracked files
@@ -96,6 +102,9 @@ fi
96
102
97
103
# merge
98
104
alias gm='git merge'
105
+
alias gma='git merge --abort'
106
+
alias gmc='git merge --continue'
107
+
alias gms='git merge --squash'
99
108
100
109
# mv
101
110
alias gmv='git mv'
@@ -106,7 +115,8 @@ alias gpatch='git format-patch -1'
106
115
# push
107
116
alias gp='git push'
108
117
alias gpd='git push --delete'
109
-
alias gpf='git push --force'
118
+
alias gpf='git push --force-with-lease'
119
+
alias gpff='git push --force'
110
120
alias gpo='git push origin HEAD'
111
121
alias gpom='git push origin $(get_default_branch)'
alias glum='git pull upstream $(get_default_branch)'
120
131
alias gpl='git pull'
121
132
alias gpp='git pull && git push'
@@ -128,17 +139,21 @@ alias grv='git remote -v'
128
139
129
140
# rm
130
141
alias grm='git rm'
142
+
alias grmc='git rm --cached'# Removes the file only from the Git repository, but not from the filesystem. This is useful to undo some of the changes you made to a file before you commit it.
131
143
132
144
# rebase
133
145
alias grb='git rebase'
146
+
alias grba='git rebase --abort'
134
147
alias grbc='git rebase --continue'
135
148
alias grbm='git rebase $(get_default_branch)'
136
-
alias grbmi='git rebase $(get_default_branch) -i'
137
-
alias grbma='GIT_SEQUENCE_EDITOR=: git rebase $(get_default_branch) -i --autosquash'
149
+
alias grbmi='git rebase $(get_default_branch) --interactive'
150
+
alias grbma='GIT_SEQUENCE_EDITOR=: git rebase $(get_default_branch) --interactive --autosquash'
138
151
alias gprom='git fetch origin $(get_default_branch) && git rebase origin/$(get_default_branch) && git update-ref refs/heads/$(get_default_branch) origin/$(get_default_branch)'# Rebase with latest remote
139
152
140
153
# reset
141
-
alias gus='git reset HEAD'
154
+
alias gus='git reset HEAD'# read as: 'git unstage'
155
+
alias grh='git reset'# equivalent to: git reset HEAD
156
+
alias grh!='git reset --hard'
142
157
alias gpristine='git reset --hard && git clean -dfx'
Simple theme showing date and time, username and hostname, current folder, Git details and as a bonus - virtual environment along with Python version available in it.
0 commit comments