Skip to content

Instantly share code, notes, and snippets.

@StrongerMyself
Last active November 24, 2022 15:22
Show Gist options
  • Save StrongerMyself/f13460f9c0e2777ed6449b589389fa9f to your computer and use it in GitHub Desktop.
Save StrongerMyself/f13460f9c0e2777ed6449b589389fa9f to your computer and use it in GitHub Desktop.
git shortcut
git reset --soft HEAD^
git checkout hash_commit -- path/to/dir
git checkout hash_commit -- path/to/file.js
docker system prune -a
git branch -D $(git branch).trim()
git tag -d $(git tag -l)
git commit --amend -m "message"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment