DEV Community

Discussion on: Git: How to move misallocated commits

Collapse
 
mygeen profile image
Mygeen • Edited

Alternatively you can use git reset --hard origin/master in step 3. This resets the status of the local repository to the state of remote.

Collapse
 
miku86 profile image
miku86

@mygeen ,

awesome, thanks for this information.
If you want to use it, first check if your remote is at the proper state.

Collapse
 
greatbahram profile image
Bahram Aghaei

Creative alternative.