git clone ../remote_repo.git .
git branch --merged
git commit --amend -m 'the commit message'
git reflog
git log --stat
git cherry-pick 720192c
Cherry picking in Git means to choose a commit from one branch and apply it onto anothergit reset --soft i4ol54f
git reset i4ol54f / git reset --mixed i4ol54f
git checkout r48ikj2
can be used to recover deleted commits using the following commit (by default, the reflog expiration date is set to 90 days)git reset --hard k829hkw
In this example k829hkw
commit is followed by r48ikj2
commit and by running the checkout
command we want to get the deleted commit back