{"thread":{"id":"20180","subject":"What does this mean","startedAt":"2009-07-21T15:59:40Z","lastAt":"2009-07-21T17:35:55Z","messageCount":3,"participants":["wkcochran123","Michał Kiedrowicz"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"118384","messageId":"24590563.post@talk.nabble.com","threadId":"20180","inReplyTo":null,"subject":"What does this mean","fromName":"wkcochran123","fromEmail":"wkcochran@gmail.com","sentAt":"2009-07-21T15:59:40Z","receivedAt":"2009-07-21T15:59:40Z","isPatch":false,"sender":{"key":"wkcochran@gmail.com","avatar":null},"body":"\nrunge:~/repository/papers wkcochra$ git checkout\nD       medial axis/medial axis.tcp\n\nA search of ^D through user-manual.txt yields nothing.\n\n-- \nView this message in context: http://www.nabble.com/What-does-this-mean-tp24590563p24590563.html\nSent from the git mailing list archive at Nabble.com.\n"},{"id":"118386","messageId":"20090721184228.78968f15@gmail.com","threadId":"20180","inReplyTo":"24590563.post@talk.nabble.com","subject":"Re: What does this mean","fromName":"Michał Kiedrowicz","fromEmail":"michal.kiedrowicz@gmail.com","sentAt":"2009-07-21T16:42:28Z","receivedAt":"2009-07-21T16:42:28Z","isPatch":false,"sender":{"key":"michal.kiedrowicz@gmail.com","avatar":"https://avatars.githubusercontent.com/u/14072847?v=4"},"body":"wkcochran123 <wkcochran@gmail.com> wrote:\n\n> \n> runge:~/repository/papers wkcochra$ git checkout\n> D       medial axis/medial axis.tcp\n> \n> A search of ^D through user-manual.txt yields nothing.\n> \n\n'git checkout' command switches to another branch (actually, because\nnothing was specified on command line, it doesn't switch at all) and\nprints a summary of modified files.\n\nFor description of 'D', look for '--name-status' option in man git-diff.\nMaybe this what you are looking for.\n\nhttp://www.kernel.org/pub/software/scm/git/docs/git-diff.html\n"},{"id":"118390","messageId":"20090721193555.25d2eb4f@gmail.com","threadId":"20180","inReplyTo":"19350ccb0907211002p2b56aaabnaca905bef133da71@mail.gmail.com","subject":"Re: What does this mean","fromName":"Michał Kiedrowicz","fromEmail":"michal.kiedrowicz@gmail.com","sentAt":"2009-07-21T17:35:55Z","receivedAt":"2009-07-21T17:35:55Z","isPatch":false,"sender":{"key":"michal.kiedrowicz@gmail.com","avatar":"https://avatars.githubusercontent.com/u/14072847?v=4"},"body":"Bill Cochran <wkcochran@gmail.com> wrote:\n\n> Thanks for the quick answer.  I can fix this problem by having a\n> clone of the repository on the same machine.  I am just curious if\n> the behavior I am seeing is correct.\n> \n> > runge:~/repository/papers wkcochra$ git checkout\n> > D       medial axis/medial axis.tcp\n> \n> 'git checkout' command switches to another branch (actually, because\n> > nothing was specified on command line, it doesn't switch at all) and\n> > prints a summary of modified files.\n> >\n> \n> On machine A, I created a directory and file.  This was committed to\n> `master.'  The repository was pushed to machine B.  What you are\n> looking at is the subsequent checkout on machine B.  Said directory\n> and file are medial axis/medial axis.tcp.  The checkout did not\n> create the directory nor the file.  Rather, I get the result above.\n> \n> git show informs me I am at the correct commit.  git checkout \"medial\n> axis\" fails:\n> runge:~/repository/papers wkcochra$ git checkout \"medial axis\"\n> error: pathspec 'medial axis' did not match any file(s) known to git.\n> \n> Is this the correct behavior of checkout?\n> \n> \n> > For description of 'D', look for '--name-status' option in man\n> > git-diff. Maybe this what you are looking for.\n> >\n> \n> So, this file is deleted, according to the man page of git-diff.\n> Interesting that it was never created on machine B.\n> \n> \n\nI think I managed to reproduce your problem. Here is what I did:\n\n> $ git push ../b master\n> Counting objects: 4, done.\n> Writing objects: 100% (4/4), 283 bytes, done.\n> Total 4 (delta 0), reused 0 (delta 0)\n> Unpacking objects: 100% (4/4), done.\n> warning: updating the current branch\n> warning: Updating the currently checked out branch may cause confusion,\n> warning: as the index and work tree do not reflect changes that are in HEAD.\n> warning: As a result, you may see the changes you just pushed into it\n> warning: reverted when you run 'git diff' over there, and you may want\n> warning: to run 'git reset --hard' before starting to work to recover.\n\nThis seems to be your case. You see a file as deleted, because in another repo\nyou have created.\n\n> warning: \n> warning: You can set 'receive.denyCurrentBranch' configuration variable to\n> warning: 'refuse' in the remote repository to forbid pushing into its\n> warning: current branch.\n> warning: To allow pushing into the current branch, you can set it to 'ignore';\n> warning: but this is not recommended unless you arranged to update its work\n> warning: tree to match what you pushed in some other way.\n> warning: \n> warning: To squelch this message, you can set it to 'warn'.\n> warning: \n> warning: Note that the default will change in a future version of git\n> warning: to refuse updating the current branch unless you have the\n> warning: configuration variable set to either 'ignore' or 'warn'.\n> To ../b\n>  * [new branch]      master -> master\n> \n> $ cd ../b/\n> $ git checkout \n> D\tmedial axis/medial axis.tcp\n"}]}