summaryrefslogtreecommitdiff
path: root/_posts
diff options
context:
space:
mode:
authorDaniel Jackoway <danjdel@gmail.com>2010-08-05 01:42:13 +0800
committerRyan Tomayko <rtomayko@gmail.com>2010-08-30 11:53:40 +0800
commit1849e3a3f44ffa61b1f466da023d558318c261b2 (patch)
tree76aa7fee49971cb4db581c40c913eb2c849997e6 /_posts
parent65a020219c09a24922cc21de15bac899d063aa79 (diff)
mention git diff --cached when talking about how not to commit sensitive data
Diffstat (limited to '_posts')
-rw-r--r--_posts/2009-09-09-removing-sensitive-data.textile2
1 files changed, 1 insertions, 1 deletions
diff --git a/_posts/2009-09-09-removing-sensitive-data.textile b/_posts/2009-09-09-removing-sensitive-data.textile
index 185dfd2..5144691 100644
--- a/_posts/2009-09-09-removing-sensitive-data.textile
+++ b/_posts/2009-09-09-removing-sensitive-data.textile
@@ -77,7 +77,7 @@ Be warned that force-pushing does not erase commits on the remote repo, it simpl
h2. Avoiding accidental commits in the future
-There are a few simple tricks to avoid committing things you don't want committed. The first, and simplest, is to use a visual tool like git-gui or "gitx":http://gitx.frim.nl/ to make your commits. This lets you see exactly what you're committing, and ensure that only the files you want are added to the repo. If you're working form the command line, avoid the catch-all commands `git add .` and `git commit -a`, instead use `git add filename` and `git rm filename` to individually stage files. You can also use `git add --interactive` to review each changed file and stage it, or part of it, for commit.
+There are a few simple tricks to avoid committing things you don't want committed. The first, and simplest, is to use a visual tool like git-gui or "gitx":http://gitx.frim.nl/ to make your commits. This lets you see exactly what you're committing, and ensure that only the files you want are added to the repo. If you're working form the command line, avoid the catch-all commands `git add .` and `git commit -a`, instead use `git add filename` and `git rm filename` to individually stage files. You can also use `git add --interactive` to review each changed file and stage it, or part of it, for commit. If you're working from the command line, you can also use `git diff --cached` to see what changes you have staged for commit. This is the exact diff that your commit will have as long as you commit without the `-a` flag.
h2. Other reading