This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#INSTALL | |
#Put this function on your .bashrc or /etc/profile or .profile (in macOS) | |
#USAGE | |
# gitpush <branch> "commit comment" | |
gitpush(){ | |
if [[ $# -eq 0 ]] ; then | |
echo "arguments needed"; | |
fi | |
if [[ $# -eq 2 ]] ; then | |
git pull origin $1 --no-edit ; |
NewerOlder