!!!! THIS REPO IS NOT READY !!!!
git gud for git
git gud <cmd> [options]
through curl
sh -c "$(curl -fsSL https://raw.githubusercontent.com/icosa-hk/git-gud/master/gitgud.sh)"- installation
- gud init
- gud clone
- gud pull
- gud commit
- gud undo
- gud profile
- gud backmerge
All-in-1 init, it will first init the git repo, and then:
- Prompt for adding a
README.md - Prompt for adding a
.gitignore - Prompt for picking a git user profile
- Prompt for adding the upstream URL
- Upon finishing the above grunt work, prompt for making the first commit and push
Clone with submodules
Pull recursing and updating submodules
- Add the files specified
- Prompt for commit message
- Prompt for permission to push
- Push upon receiving permission
Alias include add, commit, and push, where if push is used, git-gud will push without prompting for permission
- add: Undo an add
- commit: Undo a local commit
- changes: Undo all local changes to the lastest commit
- push: Take the 2nd last commit and commit the changes needed for the last commit to revert to the 2nd last
- without argument: read list of profiles and allow user to pick one
- new : prompt to make a new profile
- edit: show list of profiles to pick from for edit
- delete : delete a profile
Config Options:
- warning: show warning prompts
- verbose: print the commands performed
- without argument: backmerge current branch into default branch
- 1 argument: backmerge current branch to branch specified argument
- 2 arguments: backmerge branch specified by 1st argument into the 2nd