My project is not under git, it is in the local branch [closed]

-5

I created a branch and when I made my changes, they were all in the local branch. I'm not getting up to the git repository. What to do? I made a new download of the project and kept a backup of the changed project, but I believe the branch contains the changes made. Right click on the branch and select Push by and when I open the repository my push does not appear. How do I submit to the repository?

Use Bitbucket.

When giving a git staus, I get this:

  

fatal: No to git repository (or any of the parent directories) .git

    
asked by anonymous 21.03.2018 / 20:04

1 answer

2

Git probably has not been initialized in your project directory. Clone the project to 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 so, set them on your local machine with the command:

$ git checkout <NOME_DO_BRANCH>

That's just 'commit' and 'push'. :)

    
21.03.2018 / 20:34