Skip to content

Instantly share code, notes, and snippets.

View aalonzolu's full-sized avatar

Andrés Alonzo y Alonzo aalonzolu

View GitHub Profile
@aalonzolu
aalonzolu / gitpush.sh
Last active September 26, 2017 17:48
gitpush function, send to git in one line.
#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 ;