2. BASIC GIT COMMANDS
$ git status Show the working tree status
$ git add Add file contents
$ git commit Commit changes
$ git pull/push Syn changes to github
$ git log Show commit logs
$ git branch <branch_name>Create new branch
$ git checkout <branch_name> Switch to a branch
6. WHY SHOULD I REBASE ?
• To remove an unwanted merge commit.
Eg – Merge commit : Merge branch 'master' of github.com:company/projectName
• Makes commit history easier to read , and manipulate.
• Debugging.
7. RESOLVING MERGE CONFLICTS IN GIT REBASE
• To completely undo the rebase.
$ git rebase –abort
• To continue processing the rest of the rebase.
$ git rebase –continue
• To completely skip the commit
$ git rebase --skip
8. INTERACTIVE REBASE
• To reorder commits
• To change change the commit message
• To split a commit into two
• To squash multiple commits into one.
• To drop the commit.