sofistes.net

sofistes.net

About sofistes.net

This blog is a way for me to collect interesting stuff into one place. I'm not planning on making this a confession booth of any sort, just post random interesting web sites if I feel the need to comment on them (otherwise I just add them to my del.icio.us page) and comment on other stuff that is worth it (books, TV programs, games, CD's etc).

Knowing myself I doubt I will be updating this too often but we'll see...

Hidden secrets of git

All sorts of geeky stuffPosted by Marko Poutiainen Thursday, May 14 2009 14:58:25
This caused a bit of a headache. This is the scenario:

In repo 1:
- Edit some stuff,
- git commit,
- git tag -a,
- git push --tags.

In repo 2:
- git pull --tags,

-> The changes from the edit are visible.

This definitely isn't clear from the documentation:

--cut--

--tags

All refs under $GIT_DIR/refs/tags are pushed, in addition to refspecs explicitly listed on the command line.

--cut--

But very cool, neverthless. This means it's not possible to accidentally only push the tags and not the changes associated with them.

  • Comments(0)//www.sofistes.net/#post30