Last active
January 20, 2017 23:59
-
-
Save 2016rshah/1ecc7d7871eb7786ebb366d101d8ed13 to your computer and use it in GitHub Desktop.
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
submitPush() { | |
git add . | |
git commit -m "$1" | |
git push origin master | |
cwd=$(pwd) | |
cd ../ | |
git add . | |
git commit -m "$1" | |
git push origin master | |
cd $cwd | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
vim ~/.bash_profile
submitPush "My commit message"
from the innermost directory (Gheith's directory)