Error uploading files to remote server

1

Hello. I created a remote repository on bitbucket and did all normal operations via the command line: clone, add, commit, push, and pull. I saved a copy in the pendriver and had to format the machine. After I set the environment, I put the project of the pendriver in the computer, I can not push. I deleted the project files, I cloned, but it did not work. The error is:

fatal: 'git / bitbucket.org: andre_sn / sfp.git' does not appear to be a git repository fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists.

The command I make is:

git push -u origin master

I've already tried:

git push origin master

    
asked by anonymous 14.01.2016 / 14:00

1 answer

0

When adding the remote repository it must contain the @ between git and bitbucket.

Ex:

git remote add origin [email protected]:andre_sn/sfp.git
If the repository was initialized correctly, the files added and committed, the command git push -u origin master is the correct case for the master branch and the origin repository.

    
14.01.2016 / 14:52