{"id":6620,"date":"2014-04-20T13:57:09","date_gmt":"2014-04-20T13:57:09","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/20\/why-is-git-pull-throws-an-error-cannot-be-used-without-a-working-tree-collection-of-common-programming-errors\/"},"modified":"2014-04-20T13:57:09","modified_gmt":"2014-04-20T13:57:09","slug":"why-is-git-pull-throws-an-error-cannot-be-used-without-a-working-tree-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/20\/why-is-git-pull-throws-an-error-cannot-be-used-without-a-working-tree-collection-of-common-programming-errors\/","title":{"rendered":"why is Git pull throws an error: cannot be used without a working tree-Collection of common programming errors"},"content":{"rendered":"<p>I have installed Git version 1.7.6.msysgit.0 on our Windows 2003 Server (SP2). This is our main repository for 14 developers.<\/p>\n<p>I am trying to create a backup from this repository. The way I am trying is: I made a clone of this repo on our backup server:<\/p>\n<pre><code>cd to\/my\/backup\/git\/folder.git\ngit clone z:\/GIT\/Lib.git .\n<\/code><\/pre>\n<p>I am now trying to pull changes from the main repository, but I get the following error<\/p>\n<pre><code>git pull\nFatal: ... git-clone cannot be used without a working tree \n<\/code><\/pre>\n<p>The config file under Z:\/GIT\/Lib.git is:<\/p>\n<pre><code>Z:\\GIT\\Lib.git&gt;more config\n[core]\n        repositoryformatversion = 0\n        filemode = false\n        bare = true\n        symlinks = false\n        ignorecase = true\n        hideDotFiles = dotGitOnly\n[remote \"origin\"]\n        url = \/\/NAS\/GIT\/Lib\n<\/code><\/pre>\n<p>Running<\/p>\n<pre><code>git status\n<\/code><\/pre>\n<p>throws the same error.<\/p>\n<p>I thought the problem was with the :<\/p>\n<pre><code>bare=true\n<\/code><\/pre>\n<p>so I changed it, but did not change the result.<\/p>\n<p>I will NEVER work on the backup folders ( I have 4 repos now under z:\/GIT\/ &#8211; and all need to be backed up in the same way &#8211; or somehow)<\/p>\n<p>This article mentions that I need this work-tree, but if I set it, can I have the other repos pulled as well?<\/p>\n<p>The question can be asked also in another format as: What is the best way to make a GIT backup ?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have installed Git version 1.7.6.msysgit.0 on our Windows 2003 Server (SP2). This is our main repository for 14 developers. I am trying to create a backup from this repository. The way I am trying is: I made a clone of this repo on our backup server: cd to\/my\/backup\/git\/folder.git git clone z:\/GIT\/Lib.git . I am [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6620","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6620","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=6620"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6620\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=6620"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=6620"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=6620"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}