GitHub

07/06/2022

0

Galera , estou tentando trabalhar em um projeto em dois computadores distintos. Não estou conseguindo fazer a configuração. Podem me ajudar ?
Abaixo o que tenho feito no git , tentando tal configuração:

@NORDSONDB-62QP52V MINGW64 ~/Desktop/Pessoal/repositorio_git_githhub/projeto_elux
$ mkdir flamengo

@NORDSONDB-62QP52V MINGW64 ~/Desktop/Pessoal/repositorio_git_githhub/projeto_elux
$ cd flamengo

@NORDSONDB-62QP52V MINGW64 ~/Desktop/Pessoal/repositorio_git_githhub/projeto_elux/flamengo
$ git init
Initialized empty Git repository in C:/Users/Dirceu.Junior/Desktop/Pessoal/repositorio_git_githhub/projeto_elux/flamengo/.git/

@NORDSONDB-62QP52V MINGW64 ~/Desktop/Pessoal/repositorio_git_githhub/projeto_elux/flamengo (master)
$ git remote -v

@NORDSONDB-62QP52V MINGW64 ~/Desktop/Pessoal/repositorio_git_githhub/projeto_elux/flamengo (master)
$ git clone https://github.com/jardelvasconcelos/flamengo.git
Cloning into ''flamengo''...
remote: Enumerating objects: 95, done.
remote: Counting objects: 100% (95/95), done.
remote: Compressing objects: 100% (71/71), done.
remote: Total 95 (delta 41), reused 72 (delta 21), pack-reused 0
Receiving objects: 100% (95/95), 9.78 MiB | 968.00 KiB/s, done.
Resolving deltas: 100% (41/41), done.

@NORDSONDB-62QP52V MINGW64 ~/Desktop/Pessoal/repositorio_git_githhub/projeto_elux/flamengo (master)
$ git push
fatal: No configured push destination.
Either specify the URL from the command-line or configure a remote repository using

git remote add <name> <url>

and then push using the remote name

git push <name>


@NORDSONDB-62QP52V MINGW64 ~/Desktop/Pessoal/repositorio_git_githhub/projeto_elux/flamengo (master)
$ git remote add origin https://github.com/jardelvasconcelos/flamengo.git

@NORDSONDB-62QP52V MINGW64 ~/Desktop/Pessoal/repositorio_git_githhub/projeto_elux/flamengo (master)
$ git push origin
fatal: The current branch master has no upstream branch.
To push the current branch and set the remote as upstream, use

git push --set-upstream origin master


@NORDSONDB-62QP52V MINGW64 ~/Desktop/Pessoal/repositorio_git_githhub/projeto_elux/flamengo (master)
$ git push --set-upstream origin master
error: src refspec master does not match any
error: failed to push some refs to ''https://github.com/jardelvasconcelos/flamengo.git''

s@NORDSONDB-62QP52V MINGW64 ~/Desktop/Pessoal/repositorio_git_githhub/projeto_elux/flamengo (master)
$ git remote
origin
Jardel Vasconcelos

Jardel Vasconcelos

Responder

Que tal ter acesso a um e-book gratuito que vai te ajudar muito nesse momento decisivo?

Ver ebook

Recomendado pra quem ainda não iniciou o estudos.

Eu quero
Ver ebook

Recomendado para quem está passando por dificuldades nessa etapa inicial

Eu quero

Utilizamos cookies para fornecer uma melhor experiência para nossos usuários, consulte nossa política de privacidade.

Aceitar