Search code examples
gitzshoh-my-zsh

Oh My Zsh - git plugin alises ggp (git push origin $(current_branch)) vs. ggpush (git push origin "$(git_current_branch)")


In Oh My Zsh git plugin documentation on GitHub, among the listed aliases commands there are the following:

Alias Command
ggp git push origin $(current_branch)
ggpush git push origin "$(git_current_branch)"
ggl git pull origin $(current_branch)
ggpull git pull origin "$(git_current_branch)"

What is the difference between $(current_branch) and "$(git_current_branch)"?


Solution

  • There is no difference, current_branch is a compatibility alias for git_current_branch. See the code.