merge locally in git

Keshav Gautam
May 27, 2021

--

Step 1. Fetch and check out the branch for this merge request

git fetch origin
git checkout -b "MT-919" "origin/MT-919"

Step 2. Review the changes locally

Step 3. Merge the branch and fix any conflicts that come up

git fetch origin
git checkout "develop"
git merge --no-ff "MT-919"

Step 4. Push the result of the merge to GitLab

git push origin "develop"

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Keshav Gautam
Keshav Gautam

No responses yet

Write a response