17 lines
666 B

┏━┓╺┳╸┏━┓┏━╸╻┏┓╻┏━╸ ┏━┓┏━┓┏━╸┏━┓
┗━┓ ┃ ┣━┫┃╺┓┃┃┗┫┃╺┓ ┣━┫┣┳┛┣╸ ┣━┫
┗━┛ ╹ ╹ ╹┗━┛╹╹ ╹┗━┛ ╹ ╹╹┗╸┗━╸╹ ╹
- git add
- git add --patch (-p)
- add individual lines (hunks) to commits
- "interactive staging"
- very useful to craft commits that are easy to understand
- git restore --staged/--worktree
- git reset --soft/--mixed/--hard
- git rm --cached