Sto provando a rimuovere un repository git remoto tramite Git Bash. Sono consapevole che posso semplicemente cancellarlo tramite GitHub; tuttavia, voglio imparare come farlo attraverso la linea di comando. Non voglio solo rimuovere i file al suo interno, o sostituirlo, voglio eliminarlo completamente. Ho trascorso gli ultimi due giorni spulciando tra forum, articoli, blog e tutorial, e niente ha funzionato.Come posso eliminare un repository Git remoto dalla riga di comando (Git Bash)?
Alcune informazioni iniziale:
$ git remote -v
thisbranch https://github.com/thisuser/test-repo.git (fetch)
thisbranch https://github.com/thisuser/test-repo.git (push)
$ git status
On branch master
nothing to commit, working directory clean
$ git log
Author: *info*
Date: *info*
adding a new file
Author: *info*
Date: *info*
Initial commit
$ git remote -v show thisbranch
* remote thisbranch
Fetch URL: https://github.com/thisuser/test-repo.git
Push URL: https://github.com/thisuser/test-repo.git
HEAD branch: master
Remote branch:
master tracked
Local ref configured for 'git push':
master pushes to master (up to date)
Alcune cose che ho provato:
$ git remote remove https://github.com/thisuser/test-repo.git
error: Could not remove config section 'remote.https://github.com/thisuser/test-repo.git'
$ git remote remove master
error: Could not remove config section 'remote.master'
$ git remote remove thisbranch
*returns nothing*
$ git remote -v
*returns nothing*
io mi sono reso conto anche non ottenere restituito il nome di 'origine'.
Questo non può essere fatto. – BrokenBinary