summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorGravatar markus@c65ad4f0b6624673047e959218d058eb73e7ff15 <markus@web>2016-01-01 13:41:17 +0000
committerGravatar admin <admin@branchable.com>2016-01-01 13:41:17 +0000
commit3a863f68472d36db0c5160abb65732304bd6bb81 (patch)
tree18edc4e49da317598d3ab0666246e2b40dd70bf8 /doc
parenteb18baf6b84c59faee1b309bbe0721d0f11f4a70 (diff)
Diffstat (limited to 'doc')
-rw-r--r--doc/forum/How_to_revert_metadata_changes.mdwn25
1 files changed, 25 insertions, 0 deletions
diff --git a/doc/forum/How_to_revert_metadata_changes.mdwn b/doc/forum/How_to_revert_metadata_changes.mdwn
new file mode 100644
index 000000000..429640eff
--- /dev/null
+++ b/doc/forum/How_to_revert_metadata_changes.mdwn
@@ -0,0 +1,25 @@
+Hi,
+
+I accidentally changed some metadata tags for all annexed files in a directory (by omitting the filename to the git annex metadata call). How can I revert that change?
+
+I tried a git reset --hard on the git-annex branch, but after checking out master and adding a new file the changes magically reappeared.
+
+git-annex version: 5.20141125
+
+To reproduce do:
+
+ git init; git annex init
+ echo Hi > a.txt; git annex add a.txt
+ git commit -m 'Initial add'
+ git annex metadata --set name=bla
+ git annex metadata --set name=blu
+ git checkout git-annex
+ git reset --hard HEAD^
+ git checkout master
+ git annex metadata a.txt # name=bla
+ echo Huch > b.txt; git annex add b.txt
+ git annex metadata a.txt # name=blu again
+
+Cheers,
+
+Markus