-Having a main branch called “main” and a working branch called “myproject” we want to restore the branch “myproject” to the branch “main“
-Set to the root folder of your git projects, type
git reset –hard main
Tested on: Git 2.36
-Having a main branch called “main” and a working branch called “myproject” we want to restore the branch “myproject” to the branch “main“
-Set to the root folder of your git projects, type
git reset –hard main
Tested on: Git 2.36