{"thread":{"id":"45097","subject":"git subtree add fails in new repository","startedAt":"2017-02-10T06:30:19Z","lastAt":"2017-02-10T06:30:19Z","messageCount":1,"participants":["Daurnimator"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"311249","messageId":"CAEnbY+fcGjaTCC5ZMUzgvz-44ii1A2a7JXJJTAib255fsNWpWA@mail.gmail.com","threadId":"45097","inReplyTo":null,"subject":"git subtree add fails in new repository","fromName":"Daurnimator","fromEmail":"quae@daurnimator.com","sentAt":"2017-02-10T06:03:45Z","receivedAt":"2017-02-10T06:30:19Z","isPatch":false,"sender":{"key":"quae@daurnimator.com","avatar":null},"body":"I'm trying to make a series of repository that only contain subtrees\nfor various other projects.\nHowever git subtree does not like being on a newly created branch:\n\n$ git init\n$ git subtree add --prefix=git https://github.com/git/git.git master\nfatal: ambiguous argument 'HEAD': unknown revision or path not in the\nworking tree.\nUse '--' to separate paths from revisions, like this:\n'git <command> [<revision>...] -- [<file>...]'\nWorking tree has modifications.  Cannot add.\n"}]}