Created
April 11, 2012 15:19
-
-
Save bthuillier/2359996 to your computer and use it in GitHub Desktop.
git toolbox
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
# 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 |
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
#!/usr/bin/env ruby | |
branch = `git status | grep -wc master` | |
if branch.to_i != 0 | |
`git push heroku master` | |
end |
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
#!/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