Home>

git init → Reinitialized existing Git repository.
I would like to delete this existing repository and commit it in the normal way. Thank you. (Windows10 Ruby 2.4.4 Rails 5.1.6)

(Beginner. I have a problem with the Windows account name. I have uninstalled all Rails etc. and started over with a new account. Previously, there was no problem until git push heroku master gave an authentication error. I'm in trouble, is there something wrong with that?)

git init
Reinitialized existing Git repository in C:/Users/×××/00 // git /
git add 〇〇〇
fatal: pathspec '〇〇〇' did not match any files
git status
On branch master
No commits yet
Untracked files:
  (use "git add<file>..." to include in what will be committed)
        .gitignore
        Gemfile
        Gemfile.lock
        README.md
        Rakefile
        app /
        bin /
        config.ru
        config /
        db /
        lib /
        log /
        package.json
        public /
        test /
        tmp /
        vendor /
nothing added to commit but untracked files present (use "git add" to track)
Here I added everything with git add file name.
git status
On branch master
nothing to commit, working tree clean
git add 〇〇〇
fatal: pathspec '〇〇〇' did not match any files
  • Answer # 1

    Isn't that error coming out because the repository already exists?
    If you want to create a new repository, first delete the .git folder in that folder.

    #I don't know what I want to do. .

  • Answer # 2

    Reinitialized existing Git repository in C: /Users/×××/〇〇〇/.git/

    This.gitis an error saying "Git repository already exists inC: /Users/×××/〇〇〇/.git/folder" You can reset it by deleting the code>directory.