My project not under in git is in the local branch

Asked

Viewed 473 times

-5

I created a branch and when I made my changes, everything was in the local branch. I can’t get up to the git repository. What to do? I downloaded the project again and kept a backup of the project changed, but I think the branch contains the changes made. Right-click the branch and select Push and when I open the repository my push does not appear. As I upload to the repository?

Uso Bitbucket.

when giving a git staus, I get this:

fatal: No a git Repository(or any of the Parent Directories). git

  • Where are you storing? Bitbucket, Github? Configured keys for access?

  • @Thiagotiede, Bitbucket.

1 answer

2


You probably didn’t start git in your project directory. Clone the project on your machine, properly configure the user and email with git config and try again.

After that, use:

$ git branch -a

This command will check if you have remote branchs. If you have, set them on your local machine with the command:

$ git checkout <NOME_DO_BRANCH>

Then it’s just commit and push'. :)

Browser other questions tagged

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