Coding for over twenty years now and still learning new things and pushing to improve my skills. I want to share what I know and help other people get over the tough spots in their journey.
You could actually shorten your pull and push git commands a bit. Oh My Zsh also has ggl which is an alias for git pull origin $(current_branch). The plugin keeps track of which branch you are on in the current_branch variable. When you are on the master branch the alias would end up being git pull origin master, if you were on a branch named feature it would be git pull origin feature. The same rules apply to the ggp alias, defined as git push origin $(current_branch).
That's how ggpush and ggpull work too, but I didn't know about the shorter-named functions! Guess I really need to read through all the functions in that plugin, heh. Thanks!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
You could actually shorten your pull and push git commands a bit. Oh My Zsh also has
ggl
which is an alias forgit pull origin $(current_branch)
. The plugin keeps track of which branch you are on in thecurrent_branch
variable. When you are on themaster
branch the alias would end up beinggit pull origin master
, if you were on a branch namedfeature
it would begit pull origin feature
. The same rules apply to theggp
alias, defined asgit push origin $(current_branch)
.That's how
ggpush
andggpull
work too, but I didn't know about the shorter-named functions! Guess I really need to read through all the functions in that plugin, heh. Thanks!