When working with Git, I often find myself typing:
This stages any changes including new files (which
"git commit -am" doesn’t), marks any files that have been deleted from the working copy as removed and commits to the repository.
Following a quick Google search, and thanks to this handy git alias article, I created a “ca” (commit all) alias using:
Now committing all changes is as simple as:
This is a good solution, however I prefer adding the following function to my
Which gets us to: