Github official guide.
Github cheetsheet can be seen in here.
An online source to learn git
Here are some commonly used associated skills.
- Merge 2 commit
1
git rebase --interactive HEAD~2
then pick or squash the commit,
git push --force
to keep only 1 commit.