Commit to wrong branch

Asked

Viewed 725 times

0

I committed to a wrong branch and because of that I can no longer push a specific branch because the files that were modified no longer appear. How can I make a forced modification and upload these changes to my branch?

  • In the commit branch, it contains information that you can play in the main repository?

1 answer

1

1- Back up what you did.

2- git checkout .

3- git checkout [branch_desejada]

4- git push origin [branch_desejada]

Browser other questions tagged

You are not signed in. Login or sign up in order to post.