Skip to content

Instantly share code, notes, and snippets.

@rzymek
Created October 30, 2015 15:38
Show Gist options
  • Save rzymek/faa351902bc38c5893e9 to your computer and use it in GitHub Desktop.
Save rzymek/faa351902bc38c5893e9 to your computer and use it in GitHub Desktop.
git
#!/bin/bash
echo -en '\033[33m'
git rev-parse --abbrev-ref HEAD
echo -en '\033[0m'
git status -s $*
#!/bin/bash
if [[ $* == '' ]];then
remote=origin
else
remote="$*"
fi
branch=`git rev-parse --abbrev-ref HEAD`
for f in --ff-only --rebase;do
echo "git pull $f -X ignore-space-at-eol --tags $remote $branch "
git pull $f -X ignore-space-at-eol --tags $remote $branch && exit
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment