Go script to automate git commands: add, commit and push.
go build -o goflow main.go./goflowThe script will:
- Show repository status
- Ask for files to add (use
.for all) - Request commit message
- Push to
mainbranch (or another of your choice)
- Go installed
- Git configured on system
=== Git Status ===
On branch main...
=== Git Add ===
Enter files to add (use '.' to add all): .
=== Git Commit ===
Enter commit message: Initial update
=== Git Push ===
Push will go to 'main' branch. Enter another branch name (or press Enter):
Pushing commit to 'main' branch...