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.

20 lines
951 B

  1. ╻┏┓╻╺┳╸┏━╸┏━┓┏━┓┏━╸╺┳╸╻╻ ╻┏━╸ ┏━┓┏━╸┏┓ ┏━┓┏━┓╻┏┓╻┏━╸
  2. ┃┃┗┫ ┃ ┣╸ ┣┳┛┣━┫┃ ┃ ┃┃┏┛┣╸ ┣┳┛┣╸ ┣┻┓┣━┫┗━┓┃┃┗┫┃╺┓
  3. ╹╹ ╹ ╹ ┗━╸╹┗╸╹ ╹┗━╸ ╹ ╹┗┛ ┗━╸ ╹┗╸┗━╸┗━┛╹ ╹┗━┛╹╹ ╹┗━┛
  4. - $ git rebase -i <commit-ish>
  5. Can be used to cleanup commit history
  6. - allows to basically change the history of your commits
  7. - each project should have a guideline
  8. - small feature may for example be _squashed_ together
  9. - WIP- or unnecessary commits can be removed
  10. - remove _checkpoint commits_
  11. -> $ git rebase -i my_current_feature@{24.hours.ago}~1