@filiberto
To reset to the main branch in git, you can use the following command:
1
|
git checkout main |
This command will switch your current branch to the main branch. If you have any changes in your current branch that you want to keep, you can use the following command to save them:
1
|
git stash |
After saving your changes, you can switch to the main branch and then apply your changes with the following commands:
1
|
git stash apply |
Alternatively, you can commit your changes in your current branch before switching to the main branch.