Commit d9adf482 authored by paugier's avatar paugier
Browse files

Add a section on gitignore

parent d7af8f8a
Pipeline #51128 passed with stage
in 51 seconds
......@@ -303,10 +303,32 @@
hg log -G
```
%% Cell type:markdown id: tags:
## Level 0.1: about the special files .hgignore and .gitignore
There are files that you don't want to include in a repository. Usually, you want to include the source but not what is produced with the source (programs, libraries, pdf files, etc.).
To avoid to have too many files listed when one call `hg st`, one can add a file `.hgignore` (or `.gitignore`, when using hg-git).
See https://www.mercurial-scm.org/wiki/.hgignore and https://git-scm.com/docs/gitignore
Typical content of a `.gitignore` file:
```
*.pyd*
*.pyc
*~
*tmp
\#*\#
ipynb/*.slides.html
.ipynb_checkpoints
```
%% Cell type:markdown id: tags:
## Level 1.0: command `revert`
%% Cell type:code id: tags:
``` bash
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment