Last active
August 4, 2024 14:38
-
-
Save n-at-han-k/ba17d56f35544f0f59c0367705553eef to your computer and use it in GitHub Desktop.
Bash shell script to quickly push all changes to git in one command from any sub-directory.
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/bash | |
| GIT=`which git` | |
| REPO_DIR=`${GIT} rev-parse --show-toplevel` | |
| cd ${REPO_DIR} | |
| ${GIT} add --all . | |
| ${GIT} commit -m "Quick Git Push" | |
| ${GIT} push |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have this script located in
~/binwhich is added to myPATHin.zshrc