-
-
Save newmen/350400393ca4ad26dd40a9262c4d536f to your computer and use it in GitHub Desktop.
git pull/push
This file contains hidden or 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
| #!/bin/sh | |
| git fetch | |
| current=`git branch --show-current` | |
| git pull origin $current |
This file contains hidden or 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
| #!/bin/sh | |
| current=`git branch --show-current` | |
| git push origin $current $@ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment