2
respostas

fatal: remote origin already exists.

user~/alura/git/romeu$ ls
index.html
user~/alura/git/romeu$ git remote add origin https://github.com/romeuti/alura-git.git
fatal: remote origin already exists.
user~/alura/git/romeu$ git push origin master
Username for 'https://gitlab.com': romeusn@gmail.com
Password for 'https://romeusn@gmail.com@gitlab.com': 
remote: HTTP Basic: Access denied
fatal: Authentication failed for 'https://gitlab.com/suportevision/alura-git.git/'
user~/alura/git/romeu$ 
2 respostas
user@TI:~/alura/git/romeu$ git init --bare
Initialized empty Git repository in /home/vision/alura/git/romeu/
user@TI:~/alura/git/romeu$ git remote add origin https://github.com/romeuti/alura-git.git
user@TI:~/alura/git/romeu$ git push origin master
error: src refspec master does not match any
error: failed to push some refs to 'https://github.com/romeuti/alura-git.git'

Olá Romeu,

faz um commit no local e tenta novamente.

Caso este post tenha te ajudado, por favor, marcar como solucionado ✔. Bons estudos! ⌣