SAGARFIVE

1. Introduction

2. Git Basics

3.  Git Terminology

4.  Git Branching

5.  Git - Github

6.  Git Add (Git staging)

7.  Git Commit

8.  Github Advanced

9.  Git Remote

7.12 Git rebase drop (dropping commit from history)

Git rebase drop : dropping the commit

  • drops the exising commit from commit history
  • we drop commit by running this command git rebase -i HEAD~n ( n is number of last commit count)
  • An Editor opens , it shows commits names , there we need to change pick with drop infront of the specific commit which we want to drop
  • Before commit drop
  • Running the rebase command
  • Editing the rebase file with options
  • Replace pick with drop
  • Checking the git log
  • Fourth commit is not showing