I made a commit in a wrong branch and because of this I can no longer push on a specific branch because the files that have been modified do not appear anymore. How can I make a forced modification and upload these changes to my branch?
I made a commit in a wrong branch and because of this I can no longer push on a specific branch because the files that have been modified do not appear anymore. How can I make a forced modification and upload these changes to my branch?
1- Back up what you did.
2 git checkout .
3 git checkout [branch_desejada]
4- git push origin [branch_desejada]