Skip to content
/ gits Public

Commands for the top 40 git questions on stack overflow

Notifications You must be signed in to change notification settings

qpwo/gits

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

gits: git snippets

Commands for the 40 most common git problems on stack overflow

image

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

List of commands

  • 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

About

Commands for the top 40 git questions on stack overflow

Resources

Stars

Watchers

Forks

Languages