Domanda

Ho seguito le istruzioni qui Per creare una nuova filiale. Ho eseguito i seguenti comandi da un'istanza EC2 in cui ho clonato il repository:

$ git branch
  * master
$ git branch solr
$ git checkout solr
$ git branch
   master
  * solr
$ git add .
$ git commit -m "adding a change from the feature branch"
$ git checkout master
$ git push origin solr

Ma il comando push mi dà il seguente errore:

fatal: 'origin' does not appear to be a git repository
fatal: The remote end hung up unexpectedly

Sono un principiante da git. Per favore qualcuno potrebbe aiutare. Grazie

È stato utile?

Soluzione

Mancava il telecomando. Risolto usando:

git remote add origin https://bitbucket.org/usr/repo
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top