From cc47dca592206f70f33bb07e3a80287f0b5e8f0c Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 8 Jul 2013 16:17:28 -0400 Subject: add a new item to walkthrough, as people get confused about whether tags and branches are supported (they are) --- doc/walkthrough/using_tags_and_branches.mdwn | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 doc/walkthrough/using_tags_and_branches.mdwn (limited to 'doc/walkthrough') diff --git a/doc/walkthrough/using_tags_and_branches.mdwn b/doc/walkthrough/using_tags_and_branches.mdwn new file mode 100644 index 000000000..06f021472 --- /dev/null +++ b/doc/walkthrough/using_tags_and_branches.mdwn @@ -0,0 +1,14 @@ +Like git, git-annex hangs on to every old version of a file, so you can +make tags and branches, and can check them out later to look at the old +files. + + # git tag 1.0 + # rm -f my_cool_big_file + # git commit -m deleted + # git checkout 1.0 + # cat my_cool_big_file + yay! old version still here + +Of course, when you `git checkout` an old branch, some old versions of +files may not be locally available, and may be stored in some other +repository. You can use `git annex get` to get them as usual. -- cgit v1.2.3