Critical Developers

Programmers Knowledge Base

How to merge two branches using git command

Steps for merging two branches using git command:-

1. Switch to destination branch

>git checkout <destinationBranchName>

2. Merge destination branch with source branch

>git merge <sourceBranchName>

3. Push destination branch (Make sure your destination branch is active in workspace)

>git push
Loading