You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
666 B

  1. ┏━┓╺┳╸┏━┓┏━╸╻┏┓╻┏━╸ ┏━┓┏━┓┏━╸┏━┓
  2. ┗━┓ ┃ ┣━┫┃╺┓┃┃┗┫┃╺┓ ┣━┫┣┳┛┣╸ ┣━┫
  3. ┗━┛ ╹ ╹ ╹┗━┛╹╹ ╹┗━┛ ╹ ╹╹┗╸┗━╸╹ ╹
  4. - git add
  5. - git add --patch (-p)
  6. - add individual lines (hunks) to commits
  7. - "interactive staging"
  8. - very useful to craft commits that are easy to understand
  9. - git restore --staged/--worktree
  10. - git reset --soft/--mixed/--hard
  11. - git rm --cached