Git commit with no commit message

git generally requires a non-empty message because providing a meaningful commit message is part of good development practice and good repository stewardship. The first line of the commit message is used all over the place within git; for more, read “A Note About Git Commit Messages”. If you open Terminal.app, cd to your project directory, … Read more

Git: add vs push vs commit

git add adds your modified files to the queue to be committed later. Files are not committed git commit commits the files that have been added and creates a new revision with a log… If you do not add any files, git will not commit anything. You can combine both actions with git commit -a … Read more

GIT commit as different user without email / or only email

The minimal required author format, as hinted to in this SO answer, is Name <email> In your case, this means you want to write git commit –author=”Name <email>” -m “whatever” Per Willem D’Haeseleer’s comment, if you don’t have an email address, you can use <>: git commit –author=”Name <>” -m “whatever” As written on the … Read more

How to git ignore ipython notebook checkpoints anywhere in repository

If you add to .gitignore: .ipynb_checkpoints (no slashes anywhere), any file or directory in the repo with that name will be ignored. Paths are only checked if you include /. From this answer you can also have a global gitignore for your computer: git config –global core.excludesfile ‘~/.gitignore’ echo ‘.ipynb_checkpoints’ >> ~/.gitignore