Check out example codes for "how to rebasde". It will help you in understanding the concepts better.
Code Example 1
$ git checkout experiment $ git rebase master First, rewinding head to replay your work on top of it... Applying: added staged command
Learn ReactJs, React Native from akashmittal.com