A quick tip for Git

Git is handy, and the typical workflow is add -> commit -> push. Adding a single file can be done quicker with a combination.

git commit . -m "my commit"

This will add & commit with one command. You can also use normal cli-tricks. For example, if you'd like to add only Python files, you could use:

git commit *.py -m "My msg"

All articles


Comments

No published comments yet.


Add a Comment

Your comment is held for review before it appears publicly.

Your email is never published or shared.

Up to 2,000 characters.

Tick the box, then click Submit right away (Google expires the check after about two minutes).