Git Merge
Copy Below Code
View As A Text File
Show Text Only
Show API
Edit Code
--- Staging ---
git add , commit and push your changes in staging
now checkout to DEV
--- DEV ---
git merge staging - Its means merge all changes from staging to DEV Branch
git push origin dev
--- DEV - Single Commit ---
git merge --squash staging -- it will mak all changes in a single commit
git commit -m "Merge Staging"
git push origin DEV
- We can make multiple commits in the branch and at end we can push them
- We can also switch the branch after making commit the changes