Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. Workspaces Forum
  4. "Not a git repository"

"Not a git repository"

Scheduled Pinned Locked Moved Workspaces Forum
comcollaborationworkspace
6 Posts 3 Posters 11 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    ravenspoint
    wrote on last edited by
    #1

    I have tried forking an existing repository, and creating a new empty workspace but I cannot connect to them

    $ git remote add origin https://git.codeproject.com/ravenspoint/ws
    fatal: Not a git repository (or any of the parent directories): .git

    D R 2 Replies Last reply
    0
    • R ravenspoint

      I have tried forking an existing repository, and creating a new empty workspace but I cannot connect to them

      $ git remote add origin https://git.codeproject.com/ravenspoint/ws
      fatal: Not a git repository (or any of the parent directories): .git

      D Offline
      D Offline
      David Cunningham
      wrote on last edited by
      #2

      Did you run 'git init' to initialize your local repository?

      R 1 Reply Last reply
      0
      • D David Cunningham

        Did you run 'git init' to initialize your local repository?

        R Offline
        R Offline
        ravenspoint
        wrote on last edited by
        #3

        Yes. Note the instructions ( Working with CodeProject Workspaces::Code (::GitMachine)[^] ) say to do the init afterwards. I have tried both

        K 1 Reply Last reply
        0
        • R ravenspoint

          Yes. Note the instructions ( Working with CodeProject Workspaces::Code (::GitMachine)[^] ) say to do the init afterwards. I have tried both

          K Offline
          K Offline
          Kamil Burzynski
          wrote on last edited by
          #4

          Did you called 'git remote add' from the repository folder, or from somewhere outside of it? Git clearly said that the local folder was not the repository, I would do a double verification of it.

          R 1 Reply Last reply
          0
          • R ravenspoint

            I have tried forking an existing repository, and creating a new empty workspace but I cannot connect to them

            $ git remote add origin https://git.codeproject.com/ravenspoint/ws
            fatal: Not a git repository (or any of the parent directories): .git

            R Offline
            R Offline
            ravenspoint
            wrote on last edited by
            #5

            The problem seems to be with naming the remote as 'origin'. I already use git with another repository. So there is already a remote called 'origin' which causes problems. Things work better if I choose another name

            James@MILLER ~/Documents/test4 (master)
            $ git remote add t4 https://git.codeproject.com/ravenspoint/dxfvtest4

            James@MILLER ~/Documents/test4 (master)
            $ git remote -v
            origin
            t4 https://git.codeproject.com/ravenspoint/dxfvtest4 (fetch)
            t4 https://git.codeproject.com/ravenspoint/dxfvtest4 (push)

            James@MILLER ~/Documents/test4 (master)
            $ git pull t4 master
            remote: Counting objects: 47, done.
            remote: Compressing objects: 100% (44/44), done.
            remote: Total 47 (delta 8), reused 0 (delta 0)
            Unpacking objects: 100% (47/47), done.
            From https://git.codeproject.com/ravenspoint/dxfvtest4
            * branch master -> FETCH_HEAD
            * [new branch] master -> t4/master

            1 Reply Last reply
            0
            • K Kamil Burzynski

              Did you called 'git remote add' from the repository folder, or from somewhere outside of it? Git clearly said that the local folder was not the repository, I would do a double verification of it.

              R Offline
              R Offline
              ravenspoint
              wrote on last edited by
              #6

              Yes, I called git remote add from inside the repostory folder. The problem seesm to do with adding a remote origin to an existing git installation which already has an origin set.

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups