diff options
author | Ayush <darkceil7@live.com> | 2015-10-06 00:45:40 +0530 |
---|---|---|
committer | Ayush <darkceil7@live.com> | 2015-10-06 00:45:40 +0530 |
commit | 7b7ce666b66e897c115879d505104330923919ec (patch) | |
tree | a0c671eae818a9dfc56c99b724bd5e799bcdbda8 | |
parent | 6611db502aafc9768254efb45495a9fb20a79c81 (diff) |
Git: added para for gitignore
-rw-r--r-- | git.html.markdown | 10 |
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) |