+---------------------------+
| |
| Quick-Git (qgit) |
| |
+---------------------------+
Quick-Git (qgit) is a bash script that simplifies common Git operations. Currently, it combines the `git add`, `git commit`, and `git push` commands into a single, easy-to-use command: `qgit push`. This tool is designed to streamline your Git workflow and save you time.
## Installation
### Step 1: Clone the repository
First, clone the repository to your local machine:
```bash
git clone https://github.com/yourusername/qgit.git
cd qgit
Run the following command to make the script executable:
chmod +x qgit
- Open the Start menu and search for "Environment Variables"
- Click on "Edit the system environment variables"
- Click the "Environment Variables" button
- Under "System variables", find the "Path" variable and click "Edit"
- Click "New" and add the full path to the directory containing the
qgit
script - Click "OK" on all windows to save the changes
Alternatively, you can use Git Bash on Windows and follow the Linux instructions.
-
Open your shell configuration file (
~/.bashrc
,~/.zshrc
, or similar) in a text editor -
Add the following line at the end of the file, replacing
/path/to/qgit
with the actual path:export PATH="/path/to/qgit:$PATH"
-
Save the file and run
source ~/.bashrc
(or your corresponding config file) to apply the changes
To use qgit, you have several options:
- Add all changes, commit, and push to the current branch:
qgit push -a -m "Your commit message"
- Add specific files or use wildcards, commit, and push to the current branch:
qgit push -f file1.py *.js -m "Your commit message"
- Add all changes, commit, and push to a specific branch:
qgit push -a -o branch_name -m "Your commit message"
- Add specific files, commit, and push to a specific branch:
qgit push -f file1.py *.js -o branch_name -m "Your commit message"
Flags:
-a
: Add all changes (equivalent togit add .
)-f
: Specify files to add (can use wildcards)-m
: Provide the commit message (required)-o
: Specify the branch to push to (optional)
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the GPL3.0 License.