Commit and automatically add all untracked files

Create a file in your execution path called (no extension): git-add-commit-untracked

Put this in it:

#!/bin/bash
message=${0}
git add -A
git commit -am "$message"

Then:
git-add-commit-untracked "Commit message"

You can use a shorter name for the file though. I left it lengthy for illustrative purposes.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)