/git-magic

An intelligent Git commit assistant that saves time and effort when staging and pushing files. With just one simple command just provide a commit message, and the script will automatically stage and push the changes.

Primary LanguageShell

Git Magic

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.

Installation

To use Git Magic, follow these steps:

  1. Clone the Git Magic repository from GitHub:
  2. git clone https://github.com/your-username/git-magic.git
  3. Navigate to the cloned repository:
  4. cd git-magic
  5. Make the script executable:
  6. chmod +x autopush.sh
  7. Move the script to the bin directory:
  8. mv autopush.sh $HOME/bin/
  9. Add the directory to your PATH:
  10. export PATH="$HOME/bin:$PATH"
  11. Reload your shell configuration:
  12. source ~/.bashrc

Usage

Run the script:

autopush.sh 'Your commit message' [file1] [file2] ...

Note:

Use "." to commit all files in the current directory.