- I say: "git fetch origin v0.16.2".
- It clearly says it fetched the tag v0.16.2
- I say git checkout v0.16.2
- It says that doesn't match anything
- Why can't I get ye flask

@mcc not answering the question and i realise this is a failure of git but what the fetch output actually said is it pulled the remote ref v0.16.2 and put it in the local ref FETCH_HEAD

Follow

@passcod @mcc Fetching branches works the exact same way.

@dos @mcc Fetch is just surprisingly not a very useful command for BAU.

Pulls being done by fetching (remote -> local's own little copy of remote), integrating (creating a local ref pointing to the one that was just pulled), and checking out (replacing the working directory with that local ref) is okay implementation detail but no-one should habitually have to ever call git-fetch. (Unfortunately: the internet.)

...and more unfortunately `git pull` doesn't really work for tags, only branches.

@passcod @dos in mercurial, which is what I actually use 99% of the time, the verbs are hg pull which is like git fetch and hg update which is like git checkout. There really isn't a equivalent of git pull and frankly I feel like git pull shouldn't exist. It does too many things.

(It helps that in hg branches do not need to have names, and the verb for giving them names, bookmark, does nothing but manage names)

@mcc @dos oh, that's quite interesting! and agreed; *something* is way too overloaded here, whether it's git-pull or another bit. Hopefully the same people that made git-switch and git-restore are working on making this better

Sign in to participate in the conversation
Librem Social

Librem Social is an opt-in public network. Messages are shared under Creative Commons BY-SA 4.0 license terms. Policy.

Stay safe. Please abide by our code of conduct.

(Source code)

image/svg+xml Librem Chat image/svg+xml