summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2016-01-15 15:12:50 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2016-01-15 15:12:50 -0400
commitc01172c615c2742a142707ae315e4649ac9cbf11 (patch)
tree8f6cded5483e0a484569ae3eb48730aca79b5754 /doc
parent246d9cbf2eb419b105730447a8a12ff8c9e37e76 (diff)
response
Diffstat (limited to 'doc')
-rw-r--r--doc/tips/unlocked_files/comment_2_54a1811ef2f57f0843e48572ab6713b8._comment15
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/tips/unlocked_files/comment_2_54a1811ef2f57f0843e48572ab6713b8._comment b/doc/tips/unlocked_files/comment_2_54a1811ef2f57f0843e48572ab6713b8._comment
new file mode 100644
index 000000000..83788d479
--- /dev/null
+++ b/doc/tips/unlocked_files/comment_2_54a1811ef2f57f0843e48572ab6713b8._comment
@@ -0,0 +1,15 @@
+[[!comment format=mdwn
+ username="joey"
+ subject="""comment 2"""
+ date="2016-01-15T19:07:24Z"
+ content="""
+Direct mode is not going away any time soon.
+
+`git add` adds the file to the annex in unlocked mode, and `git annex sync`
+commits any such adds the same as any other changes, so all you need is
+`git add --all; git annex sync --content`
+
+Whether a file is locked or unlocked is a property of the file, that gets
+committed to git, so when you commit some unlocked files, they'll be
+unlocked when they appear in other clones of the repository.
+"""]]