I've made a mistake with Git.
I started to work on a project, created me/branch1
, finished it, and merged it to master
; than worked on me/branch2
, finished it, and merged to master
. I did the same with a dozen of other branches.
At some point I realized that all of my work shouldn't have gone into master
, but into development
branch instead. So I branched out development
from master
, and ever since worked exclusively in developmet
, in the same way I used to work with master
: create a branch, work on it, merge it back to development
, etc.
This left master
in some "undefined" state, outdated and useless, since developmet
is the only branch I will work in, even in the far future. Is there a way to "reset" master
to some clean, zero state, which would make my initial mistake of working in master
instad of in development
nearly invisible to outside users, and also would not pose a problem when merging development
into master
if the time comes?
Note, I was the only one working in this repository.