Shorten your git add, commit and push processes to github in just one command.
Replace <YOUR_USERNAME>
with your GitHub username.
Replace <YOUR_PERSONAL_ACCESS_TOKEN>
with your GitHub personal access token.
After that, run this command on your terminal to gain execution access.
chmod +x gitpush.sh
To use this script, run inside of your local Repo if you want to make
git add
, commit
, and push
it into your GitHub Repo,
./gitpush.sh "Your commit message"
This script automates the process of adding files, committing changes, and pushing
to GitHub using the provided credentials. Ensure to replace placeholders with your
actual GitHub credentials before running the script.
I suggest you to create an
alias
in your.bashrc
or.zshrc
(depending on what shell you use)
to make it easier to use in a different location where your local repo is stored.