GitAutomationUsingGo is a command-line tool written in Go that automates common Git workflows, making it easier to manage version control tasks efficiently.
- Automates
git add,git commit, andgit push - Reduces manual intervention and minimizes errors
- Improves developer productivity by streamlining Git workflows
- Can be extended to support additional Git operations
- Uses Cobra for a structured CLI experience
- Supports Git features like stash, checkout, and rebase
- Includes GitHub Actions workflows for CI/CD automation
git clone https://github.com/Kavisha4/GitAutomationUsingGo.git
cd GitAutomationUsingGogo build -o git-autosudo mv git-auto /usr/local/bin/git-auto
sudo chmod +x /usr/local/bin/git-automkdir MyNewRepo && cd MyNewRepo
git init
echo "# My New Project" > README.md
git add .
git commit -m "Initial commit"
git branch -M main
git remote add origin <your-github-repo-url>
git push -u origin maingit-auto commit "Your commit message"- Stash Changes:
git-auto stash - Checkout Branch:
git-auto checkout <branch> - Rebase Branch:
git-auto rebase <branch>
This project includes GitHub Actions workflows for CI/CD automation.
- Navigate to
.github/workflows/ci.ymland ensure it is correctly configured. - Push a commit to trigger the workflow:
git add .
git commit -m "Testing GitHub workflows"
git push origin main- Check the GitHub Actions tab in your repository to monitor the workflow execution.
- Auto-Pull & Conflict Resolution
- Smart Commit Messages
- Multi-Repo Automation
- CI/CD Integration
- Better Error Handling
Feel free to fork the repository and create pull requests. Suggestions and improvements are welcome!
This project is licensed under the MIT License.