Get unlimited access
Open in app
Home
Notifications
Lists
Stories

Write
Natarajan Santhosh
Natarajan Santhosh

Jun 6

·
1 min read

Git rebase

Rebase my remote branch

git checkout develop
git pull
git checkout my_branch
git rebase develop
git pull --rebase
git commit
git push -f # need the -f?

Only keep my changes

git reset --soft origin/develop
git commit
git push -f

--

--

More from Natarajan Santhosh

Love podcasts or audiobooks? Learn on the go with our new app.

Try Knowable

Recommended from Medium

Lasith Irusha Hettiarachchi

Lasith Irusha Hettiarachchi

Helm - Zero to Hero in 5 Minutes

Stuti Jain

Stuti Jain

Mocking in Junits & Springboot

Syed Sirajul Islam Anik

Syed Sirajul Islam Anik

Passwordless OTP based login, Returning JWT with tymon/jwt-auth

Eda Deniz Çelik

Eda Deniz Çelik

Working With Django Forms | Beginning Tutorial

Vedran Vučetić

Vedran Vučetić

Run only last triggered job for branch in descriptive Jenkins pipeline

Arseny Zinchenko (setevoy)

Arseny Zinchenko (setevoy)

Sentry: running self-hosted errors tracking system on an AWS EC2

Ananda Bilal

Ananda Bilal

HMS Kits Use Case in tiket.com

Christopher McLeod

Christopher McLeod

Computative Algorithm

AboutHelpTermsPrivacy


Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Natarajan Santhosh

Natarajan Santhosh

More from Medium

Andrew Wilson

Andrew Wilson

Convert XML to Word in Java

Ayush Pal

Ayush Pal

Stubs & Drivers in Programming

Kopika Ahaleetharan

Kopika Ahaleetharan

Singleton Design Pattern in Java

Amadi senarath

Amadi senarath

Java Libraries

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Knowable