I recommend signing up for the GitHub Student Developer Pack.
If you have never used Git before, you need to configure your user identity. Run the following commands:
git config --global user.email email@example.com git config --global user.name "Your Name"
This is a good starting point for a
.gitignore file for Python data science projects.
Put its contents in a file called
.gitignore in your repository.
.DS_Store/ # Ignore editor directories & files .vscode/ .idea/ *~ *.swp *.bak # Ignore Python cache & output __pycache__/ *.pyc *.pyo # Ignore IPynb test dirs .ipynb_checkpoints/ # generic log and output files *.log *.out *.prof *.lprof # Python environments for CodeSpaces pythonenv*/
Even if I have things like
.DS_Store/ in my personal ignore file, I include them in the project, in case collaborators do not.
Lines starting with
# are comments.
If you want to create a personal ignore file that applies to all your projects, do the following:
Put your ignore rules in
~/.gitignore(a file called
.gitignorein your home directory)
~/.gitconfigto include the following lines:
[core] excludesfile = ~/.gitignore