= Michel's cheat-sheets = == GIT == * remove unwanted commits (the unwanted commits remain in the system until garbage correction. Useful for cherry-pick). WARNING, don't reset changes that have already been pushed to other repositories! {{{ git reset --hard }}} * add specific commit {{{ git cherry-pick [-x] }}} * log with graph {{{ git log --graph }}} * log difference between two branches (or trees ?) {{{ git log .. }}} * push while forcing {{{ git push -f : }}} * fetch, examine and rebase {{{ git fetch git log -p HEAD..FETCH_HEAD git rebase / }}}