git merge command
We can use the git merge command to merge a specific branch into our current branch.
Syntax git merge <branch-name>
Here, the “branch-name” specifies the branch on which we want to merge the current branch.
![git merge command git merge command](media/git-merge-01.png)
Example: In the image below, we can see we have two branches “main” and “practice”, and by using the command git merge practice, we are merging the main branch into the practice branch.
![git merge command git merge command](media/git-merge-02.png)
From the above output, we can see that the main branch merged with practice. Since I have made no-commit before merging, so the output is showing as Already up to date.