Compare commits

...

4 Commits

Author SHA1 Message Date
heck cd0415885b hecks-git-ui: always use [d]elete instead of [r]emove (r clashes with rename) 7 months ago
heck ff124da82a hecks git ui: add remotes section 7 months ago
heck a8664092ae hecks git ui: always push tags. 7 months ago
heck 18026891cd hecks git ui: add more submodule functions 7 months ago
  1. 18
      bash_profile.d/git.sh

18
bash_profile.d/git.sh

@ -28,7 +28,7 @@ function heck_git_ui {
alias gc='git commit'
# push
alias gpush='git push'
alias gpush='git push --tags'
@ -39,8 +39,6 @@ function heck_git_ui {
alias gclonebaremirror='git clone --mirror'
# push
alias gpushf='git push --force'
alias gpusht='gpush; gpush --tags'
alias gpushtf='gpushf;gpushf --tags'
# tag create
alias gt='git tag'
# tag delete
@ -63,8 +61,14 @@ function heck_git_ui {
alias gcp='git cherry-pick'
# clean - remove untracked files
alias gclean='git clean -dxf'
## REMOTES
# show remote
alias gsr='git remote --verbose'
alias grs='git remote --verbose'
# add remote
alias gra='git remote add'
# delete remote
alias grd='git remote delete'
# stats - commits by author
alias gstats='git shortlog -sne'
@ -81,8 +85,12 @@ function heck_git_ui {
alias gstatsall='gstats;gstatslines'
# submodule
alias gsubpush='git submodule foreach "git push || :"'
alias gsub='git submodule'
alias gsublist='git submodule status'
alias gsublistall='git submodule status --recursive'
alias gsubinit='git submodule update --init'
alias gsubpush='git submodule foreach "git push || :"'
alias gsubupdate='git submodule update --recursive --remote'
function heck_git_ui_deprecated {
# --all / -u

Loading…
Cancel
Save