git clone your_repo_link
You can use the command git log -n 10
or git log --pretty=oneline
for that.
git rebase -i commit_id
Your text editor will open with a file that list all the commits which come after your selected commit_id and in front of each commit there is the word "pick"
git push -f origin master