Skip to content

Instantly share code, notes, and snippets.

@bthuillier
Created April 11, 2012 15:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bthuillier/2359996 to your computer and use it in GitHub Desktop.
Save bthuillier/2359996 to your computer and use it in GitHub Desktop.
git toolbox
# pour éviter d'avoir à faire
git pull --rebase
# faite la commande ci-dessous pour que la commande git pull fasse par défaut rebase au lieu de merge
git config --global branch.autosetuprebase always
# Et si vous voulez malgrès tout ne pas faire de rebase lors d'un pull
git pull --no-rebase
#!/usr/bin/env ruby
branch = `git status | grep -wc master`
if branch.to_i != 0
`git push heroku master`
end
#!/usr/bin/env ruby
branch = `git status | grep -wc master`
if branch.to_i != 0
test = system 'play', 'test'
else
test = true
end
exit test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment