I am pretty new to git. I wanted to create a project and I’m using IntelliJ to clone my repository. Unfortunately IntelliJ has its own branch being created (called master). Now I want to submit my changes to main, not to master.
Therefore I was trying the following:
-
Commit and push my changes to master in order to make sure that my changes won’t get lost.
-
Select main and do “Rebase master onto origin/main”.
-
Select main and do “checkout”.
However after checkout my changes are reset and the folders are empty. Did I forget something. Thanks for your help.
I explained it above.