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)"
?
There is no difference, current_branch
is a compatibility alias for git_current_branch
. See the code.