Skip to content

Commit

Permalink
git: Create separate ignore section
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Mar 1, 2024
1 parent ca1d741 commit ec66630
Showing 1 changed file with 29 additions and 9 deletions.
38 changes: 29 additions & 9 deletions docs/git/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,6 @@ This makes it easy to know what the changes in a branch are about.
Configuration
-------------

Add the following to your ``~/.config/git/ignore`` file:

.. code-block:: none
/coverage
.DS_Store
.sass_cache
*.pyc
We recommend using:

.. code-block:: bash
Expand Down Expand Up @@ -112,3 +103,32 @@ If you sign commits, `tell Git about your signing key <https://docs.github.com/e
.. seealso::

`Popular git config options <https://jvns.ca/blog/2024/02/16/popular-git-config-options/>`__

Excluded paths
--------------

Add the following to your ``~/.config/git/ignore`` file:

.. code-block:: none
.DS_Store
*.pyc
In general, use the repository's ``.gitignore`` file, to not rely on each user having configured global exclusions.

Common excluded paths include:

.. code-block:: none
*.mo
*.swp
*~
/*.egg-info
/.coverage
/.ve
/build
/dist
/docs/_build
/htmlcov
__pycache__
node_modules

0 comments on commit ec66630

Please sign in to comment.