Commands for the 40 most common git problems on stack overflow
Installation:
curl https://raw.githubusercontent.com/qpwo/gits/main/gits --output /usr/local/bin/gits && chmod u+x /usr/local/bin/gits
# to uninstall: rm /usr/local/bin/gits
Usage:
gits help
gits show-staged
gits help show-staged
gits push-all-branches
gits rename-branch mynewname
gits unadd foo.txt
gits ammend-message "corrected commit message"
gits discard-everything
- undo-commit
- delete-branch
- ammend-message
- rename-branch
- unadd
- pull-overwrite
- discard
- discard-everything
- checkout
- untrack
- merge-in-main
- new-branch
- push-all-branches
- add-empty-dir
- combine-last-n-commits
- back-to-last-pushed
- delete-remote-tag
- change-url
- undo-rebase
- move-working-tree-to-branch
- file-history
- current-branch
- files-in-commit
- undo-hard-reset
- set-commit-editor
- push-tag
- push-all-tags
- stash-interactive
- apply-commit
- export-files
- show-staged
- last-commit-hash
- delete-all-merged-branches
- branch-from-n-before
- ignore-except
- update-all-submodules
- unpushed-commits
- unpushed-commits-diff
- clone-at-tag
- clone-shallow
- pull-all-branches