r/programming • • Jun 19 '14

Reinventing GIT interface

http://tonsky.me/blog/reinventing-git-interface/
221 Upvotes

325 comments sorted by

View all comments

Show parent comments

3

u/[deleted] Jun 19 '14

Oops, I meant remote tag

You shouldn't do that either. If someone had pulled that tag down they won't notice you deleted it. They'll forever have the older copy of the tag. (which I admit is a failing in Git).

2

u/moor-GAYZ Jun 19 '14

I'm doing that to then point the tag at a different commit, so that's OK, I think.

-1

u/[deleted] Jun 19 '14

Nope. People who have pulled the old tag will never pull the new one and they won't even know it's out of sync.

2

u/moor-GAYZ Jun 19 '14

git fetch --tags seems to update the tag when I try it.

-2

u/[deleted] Jun 19 '14

git pull won't do that.

2

u/moor-GAYZ Jun 19 '14

Yes, and that sucks.

It's OK in my use case though, because git pull doesn't fetch tags I need anyway =) (we use tags for versions and add an extra commit with whatsnew stuff etc to a detached head). By the way, don't you just love how git fetch --all doesn't imply git fetch --tags (nor vice-versa)?

0

u/[deleted] Jun 19 '14

I rarely use git fetch unless I'm doing something fancy.

1

u/TheBuzzSaw Jun 20 '14

Isn't that handled via pruning? My team has to prune regularly as we rapidly create/delete branches.