由 neevop 七月 2, 2023
git flow
git feature myfeature # switched to branch 'feature/rofl'
...
git checkout develop
git finish myfeature # merging 'feature/rofl' into develop
# deleted branch 'feature/rofl'
branches
git delete-merged-branches # hint: do `git remote prune origin` after
git create-branch development
git delete-branch development
git fresh-branch gp-pages
inspecting
git summary # repo ages, commits, active days, etc.
git impact # impact graph
git effect # commits per file
tags
git release v1.0.0 # commit, tag, push tags
git delete-tag v1.0.0
conveniences
git ignore "*.log"
locking
# assume changes will not be committed
git lock config/database.yaml
git unlock config/database.yaml
etc
git obliterate secret.yml # remove all references to it