summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAyush <darkceil7@live.com>2015-10-06 00:45:40 +0530
committerAyush <darkceil7@live.com>2015-10-06 00:45:40 +0530
commit7b7ce666b66e897c115879d505104330923919ec (patch)
treea0c671eae818a9dfc56c99b724bd5e799bcdbda8
parent6611db502aafc9768254efb45495a9fb20a79c81 (diff)
Git: added para for gitignore
-rw-r--r--git.html.markdown10
1 files changed, 10 insertions, 0 deletions
diff --git a/git.html.markdown b/git.html.markdown
index 3b83218c..c32d9c5d 100644
--- a/git.html.markdown
+++ b/git.html.markdown
@@ -144,6 +144,16 @@ $ git commit --help
$ git init --help
```
+### ignore (set of) files
+
+To intentionally untrack file(s) & folder(s) from git. Typically meant for
+private & temp files which would otherwise be shared in the repository.
+```bash
+$ echo "temp/" >> .gitignore
+$ echo "private_key" >> .gitignore
+```
+
+
### status
To show differences between the index file (basically your working copy/repo)