Skip to content

Instantly share code, notes, and snippets.

@themsaid
Created May 8, 2019 19:23
Show Gist options
  • Save themsaid/0ae2b5d87607460b3cb9bedece9e35bf to your computer and use it in GitHub Desktop.
Save themsaid/0ae2b5d87607460b3cb9bedece9e35bf to your computer and use it in GitHub Desktop.
function pushme {
br=`git branch | grep "*"`
git add --all
if (($# > 1)); then
params=''
for i in $*;
do
params=" $params $i"
done
git commit -m "$params"
else
git commit -m "$1"
fi
if git push origin ${br/* /}
then
echo "success"
else
osascript -e 'tell app "System Events" to display dialog "PUSH FAILED!"'
fi
}
@rzv-me
Copy link

rzv-me commented May 8, 2019

Nice, i think I will adapt this for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment