Commit on the wrong branch

0

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?

    
asked by anonymous 13.11.2018 / 17:36

1 answer

0

1- Back up what you did.

2 git checkout .

3 git checkout [branch_desejada]

4- git push origin [branch_desejada]

    
13.11.2018 / 18:22