Sendgit is an interactive Bash tool that simplifies using Git. It guides you step by step to add, commit, and push your files to any branch of a GitHub repository.
1. Send changes to GitHub
- Add files
- Commit with a custom message
- Push to any branch
2. Pull the latest changes
3. Show the complete commit history (git log
)
4. Show a summary of commits (git log --oneline
)
5. Restore a deleted/modified file
- From any commit
6. Easily switch Git branches
- Clone the repository:
git clone https://github.com/hasprogamer/Sendgit.git cd Sendgit
- Make the script executable:
chmod +x github.sh
- Move the script to
/usr/local/bin
for global access:sudo mv github.sh /usr/local/bin/sendgit
- Now you can use the command directly:
sendgit
-
Create the
bin
folder:mkdir -p ~/bin
-
Move the script to this folder and make it executable:
mv github.sh ~/bin/sendgit.sh chmod +x ~/bin/sendgit.sh
-
Add
~/bin
to your PATH:
For Bash
bash echo 'export PATH=$HOME/bin:$PATH' >> ~/.bashrc echo 'alias sendgit="bash ~/bin/sendgit.sh"' >> ~/.bashrc source ~/.bashrc
For Zsh (default on Termux)
bash echo 'export PATH=$HOME/bin:$PATH' >> ~/.zshrc echo 'alias sendgit="bash ~/bin/sendgit.sh"' >> ~/.zshrc source ~/.zshrc
Then, just use the command:
sendgit
Want to get the latest version? It’s simple:
cd Sendgit
bash install.sh
Modified files:
M index.html
M script.sh
What is the commit message?
> script update
Which file do you want to send? (type * to send all, otherwise specify the file name)
> *
Which branch do you want to push to? (leave empty for 'main')
> main
Operation in progress...
Want to improve or customize Sendgit? Here’s how to contribute:
- Fork the Sendgit repository on GitHub (click "Fork").
- Clone your fork to your machine:
git clone https://github.com/yourUsername/Sendgit.git
- Go to the project folder:
cd Sendgit
- Create a new branch for your changes:
git checkout -b my-new-feature
- Make your changes and commit them:
git commit -am "Clear description of your changes"
- Push your branch to your fork:
git push origin my-new-feature
- On GitHub, open a Pull Request from your fork to the original repository.
- Clone the official repository:
git clone https://github.com/hasprogamer/Sendgit.git
- Go to the folder:
cd Sendgit
- Create a branch for your changes:
git checkout -b my-new-feature
- Edit, commit, and push your branch:
git commit -am "Clear description of the change" git push origin my-new-feature
- Open a Pull Request on GitHub.
Project maintainers will review your Pull Request and may merge it if everything looks good.