An intelligent Git commit assistant that saves time and effort when staging and pushing files. With just one simple command, provide a commit message, and the script will automatically stage and push the changes.
To use Git Magic, follow these steps:
- Clone the Git Magic repository from GitHub:
- Navigate to the cloned repository:
- Make the script executable:
- Move the script to the bin directory:
- Add the directory to your PATH:
- Reload your shell configuration:
git clone https://github.com/your-username/git-magic.git
cd git-magic
chmod +x autopush.sh
mv autopush.sh $HOME/bin/
export PATH="$HOME/bin:$PATH"
source ~/.bashrc
Run the script:
autopush.sh 'Your commit message' [file1] [file2] ...
Note:
Use "." to commit all files in the current directory.