summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-02-18 23:03:12 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-02-18 23:03:12 -0400
commitd9d059465de251a4a7dc6037f14d83e65ae37ade (patch)
treeecd8998095a1f39250dca3c4c9cfd3c6635d653f /doc
parentf8a4f0c0b2ca97074373f92f5bf0511bc41e0dad (diff)
parent0a582a1468700b859110be50bc3240ef1f80c67e (diff)
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'doc')
-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`
+"""]]