Set up git ignore file

  • Create a file named .gitignore in your project's directory. Ignore directories by entering the directory name into the file (with a slash appended):

<repo_name>/<folder_name>/*

Example:

python_fastapi/freecodecamp-course/__pycache__/*
python_fastapi/freecodecamp-course/venv/*

Last updated