Gazler / githug

Git your game on!
MIT License
6.86k stars 1.03k forks source link

push_tags init and reset failed #204

Closed qinshulei closed 7 years ago

qinshulei commented 8 years ago

When I play level 18 (push_tags), I find a isuse.

$ githug reset
********************************************************************************
*                                    Githug                                    *
********************************************************************************
resetting level
fatal: remote origin already exists.
fatal: 'origin' 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.

Name: push_tags
Level: 18
Difficulty: **

There are tags in the repository that aren't pushed into remote repository. Push them now.

Here is my enviroment:

git version 1.9.1
ruby 1.9.3p547 (2014-05-14 revision 45962) [x86_64-linux]
Ubuntu 14.04.3 LTS
gem install githug
Gazler commented 8 years ago

Thanks for raising this.

What is the result of git remote -v?

qinshulei commented 8 years ago
$ git remote -v
origin  
Gazler commented 8 years ago

This looks like it could be a permissions issue.

What is the output of the following?

git remote rm origin githug reset git remote -v

manuman94 commented 2 years ago

For me it was premissions issues.

When I executed reset with sudo it started working:

sudo githug reset

But this carries more permission problems :(