Last active
February 16, 2019 06:09
-
-
Save 0x48piraj/743356c90965813d7ca2015bd1f9f11f to your computer and use it in GitHub Desktop.
Auto-git-ng : For adding, committing and pushing files automatically
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
| #!/usr/bin/env bash | |
| for file in $(git status --short | grep "??" | tr --delete ?); do | |
| echo "Adding ${file}" | |
| git add $file | |
| git commit -m "Added $file" | |
| git push origin master | |
| echo "Done pushing $file"; | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment