Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the gd-system-plugin domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/wp-includes/functions.php on line 6114
git – Eric Scrivner
Simple Git Alias To Push The Current Branch
home // page // git
s
Technical Tips

Simple Git Alias To Push The Current Branch

Hey you! Tired of having type all this nonsense just to push up the current git branch?: $ git push origin my-super-long-branch-name Well fear not, just add this simple git alias to push the current branch: pu = !git branch | grep '^\\*' | cut -c3- | xargs git push origin And then just type: $ git pu EDIT: Little did I know there’s a much easier equivalent command $ git push origin HEAD