using git repository, have branches v1.0 through v1.6.
like to keep latest of each version in its own directory:
/dev
/.git
/good-stuff
/v1.0
...
/v1.6
what is the best way to do this?
is there any way to recreate the snapshot when a branch is committed?
linux server. thinking of a shell script invoking git checkout followed by rsync to move the files. but thinking there had to be a better way.
NOTE: used “tag” when should have said “branch” – mea culpa
Tags really aren’t supposed to be updated. They’re supposed to be fixed points in history. If you’re making constant changes, you should use a branch for that. If you do this, there’s no need to keep folders outside of git (kinda defeats the purpose of a vcs if you think about it).
If you absolutely have to have those folders though, you could probably set up a post commit hook that does that. Since you haven’t listed anything about your platform, I can’t go into any further details.