git subtree add --prefix= --squ...">

Why did I say that the "master" does not refer to the commit "when I use git-subtree?"

When I enter > git subtree add --prefix=<some dir> --squash <some repo> master, I get a message 'master' does not refer to a commit. If I change the "master" to sha, I still get a warning. The repo is valid and the owner exists in the repo into which I am trying to draw.

+4
source share
1 answer

I ended up finding this commit , and an important bit of information is

This patch:

  • relaxes the argument check in the "git subtree add" (the previous code did not accept the link name, which also does not exist locally, the new code ensures that ref is well formatted)

, master ( ). master ( , . , : git . cow )

, , git 1.9, , , , .

+8

Source: https://habr.com/ru/post/1524855/


All Articles