A simple interactive Python script to help you manage your Git repositories from the command line.
- Create new branches
- Commit changes
- Push to remote
- Pull from remote
- Show status
- Stash changes
- Reset hard to a previous commit (with confirmation)
- Clone or download this repository:
git clone https://github.com/CiccioBro17/Git-Helper.git-
Make sure you have Python and Git installed.
-
Enter the directory of the cloned repository:
cd Git-Helper- Copy the
main.pyfile to your desired location:
cp main.py /path/to/your/directory/- Run the script in your terminal:
python3 main.py- Follow the interactive prompts to perform Git operations.
What do you want to do?
1) Create a new branch
2) Commit changes
3) Push to remote
4) Pull from remote
5) Show status
6) Stash changes
7) Reset hard to previous commit
8) Exit
- Python 3.x
- Git must be installed and available in your PATH
This tool is intended for simple Git workflows and learning purposes. Use with caution, especially when using the reset feature, as it can discard changes. It's just a simple project I wanted to make, obviusly not a replacement for more complex Git tools or workflows.
This project is under the MIT license.
THE SOFTWARE IS PROVIDED 'AS IS' WITHOUT ANY WARRANTY. THE AUTHORS ARE NOT LIABLE FOR ANY CLAIMS OR DAMAGES ARISING FROM ITS USE.