Tampa
Tampa

Reputation: 78234

Git and a hard reset

I have been working on my dev branch for sooo long that nothing in my master is relevant. I would like to totally wipe master clean so I can merge my dev branch in master with a clean slate.

How do I do that?

Upvotes: 0

Views: 96

Answers (2)

Srdjan Grubor
Srdjan Grubor

Reputation: 2675

You can make master be the exact copy of dev by doing the following:

git checkout dev
git push origin dev:master

Upvotes: 0

Adrian Cornish
Adrian Cornish

Reputation: 23848

Why not just delete master and rename your branch to master assuming this is not shared

Upvotes: 1

Related Questions