Skip to content

Instantly share code, notes, and snippets.

@0x48piraj
Last active February 16, 2019 06:09
Show Gist options
  • Select an option

  • Save 0x48piraj/743356c90965813d7ca2015bd1f9f11f to your computer and use it in GitHub Desktop.

Select an option

Save 0x48piraj/743356c90965813d7ca2015bd1f9f11f to your computer and use it in GitHub Desktop.
Auto-git-ng : For adding, committing and pushing files automatically
#!/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