Skip to content

Commit

Permalink
Fix gupd command
Browse files Browse the repository at this point in the history
  • Loading branch information
KELiON committed Sep 8, 2022
1 parent c07aab0 commit 2491972
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git/aliases.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ alias gc="git commit"
alias gcb="git rev-parse --abbrev-ref HEAD"

# update current branch from main branch
alias gupd="main_branch=$(git remote show origin | sed -n '/HEAD branch/s/.*: //p'); echo \"rebasing origin/\$main_branch\"...; git fetch origin && git rebase origin/\$main_branch"
alias gupd="main_branch=\$(git remote show origin | sed -n '/HEAD branch/s/.*: //p'); echo \"rebasing origin/\$main_branch\"...; git fetch origin && git rebase origin/\$main_branch"

# .g shortcuts
alias .ga=".g add"
Expand Down

0 comments on commit 2491972

Please sign in to comment.