Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

git

zsh

oh-my-zsh

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)"?

like image 583
jmschp Avatar asked Sep 02 '25 05:09

jmschp


1 Answers

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

like image 88
phd Avatar answered Sep 04 '25 19:09

phd