Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 1.01 KB

README.md

File metadata and controls

28 lines (22 loc) · 1.01 KB

xhortpush

Shorten your git add, commit and push processes to github in just one command.

User Instructions

Configuration:

Replace <YOUR_USERNAME> with your GitHub username.
Replace <YOUR_PERSONAL_ACCESS_TOKEN> with your GitHub personal access token.

Make the script executable:

After that, run this command on your terminal to gain execution access.

chmod +x gitpush.sh

How to use:

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.