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.13 Git rebase squash (Merging commit to it’s next commit)

  • When code developers create many commits,
  • after releases we don’t need that many commits ,
  • then we can merge some commits with the previous commit.

replace pick with squash on before commit hash what you what to merge

Then after if we see git log, the squash commit will not be in the list , but the files still available in the working directory