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
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
|