summaryrefslogtreecommitdiff
path: root/doc/direct_mode
diff options
context:
space:
mode:
authorGravatar http://joeyh.name/ <http://joeyh.name/@web>2013-02-19 02:55:14 +0000
committerGravatar admin <admin@branchable.com>2013-02-19 02:55:14 +0000
commit0a582a1468700b859110be50bc3240ef1f80c67e (patch)
tree644a6a7d1e781a7f75c9bbd0fded803fb176d353 /doc/direct_mode
parent45093087e17a885eaf060660e26066aa218ffa57 (diff)
Added a comment: safe and unsafe commands
Diffstat (limited to 'doc/direct_mode')
-rw-r--r--doc/direct_mode/comment_2_7f7086b34ed136851963f145868a1d23._comment12
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/direct_mode/comment_2_7f7086b34ed136851963f145868a1d23._comment b/doc/direct_mode/comment_2_7f7086b34ed136851963f145868a1d23._comment
new file mode 100644
index 000000000..ddabee7e3
--- /dev/null
+++ b/doc/direct_mode/comment_2_7f7086b34ed136851963f145868a1d23._comment
@@ -0,0 +1,12 @@
+[[!comment format=mdwn
+ username="http://joeyh.name/"
+ ip="4.152.108.183"
+ subject="safe and unsafe commands"
+ date="2013-02-19T02:55:13Z"
+ content="""
+All git commands that do not change files in the work tee (and do not stage files from the work tree), are safe. I don't have a complete list; it includes `git log`, `git show`, `git diff`, `git commit` (but not -a or with a file as a parameter), `git branch`, `git fetch`, `git push`, `git grep`, `git status`, `git tag`, `git mv` (this one is somewhat surprising, but I've tested it and it's ok)
+
+git commands that change files in the work tree will replace your data with dangling symlinks. This includes things like `git revert`, `git checkout`, `git merge`, `git pull`, `git reset`
+
+git commands that stage files from the work tree will commit your data to git directly. This includes `git add`, `git commit -a`, and `git commit file`
+"""]]