Uhg. git clone -b accepts tags in addition to branches (for detached HEAD clone) but gratuitously rejects (100% equivalent) sha1 hashes. Is there any solution better than this hack?https://stackoverflow.com/a/3489576/379897 …
-
Show this thread
-
Replying to @RichFelker
You can shorten that to just `git clone <repo> && git checkout -b <rev>` the answer they gave is long and unnecessary.
1 reply 0 retweets 0 likes -
Replying to @envygeeks
That's not equivalent. Pulls either too little or too much.
1 reply 0 retweets 0 likes -
-
Replying to @envygeeks
Shallow is not the goal. You're making the same mistake as half the answers of the linked question.
2 replies 0 retweets 0 likes
Replying to @RichFelker @envygeeks
The goal is not to pull irrelevant branches of the remote - not to exclude history of requested revision, but to exclude its future and irrelevant alternate futures of its past.
12:48 PM - 25 Jun 2018
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.