#Custom git commit
##Install
- Save this bash file to a safe place
- give it execute permissions
chmod +x stage.sh
[3] create an alias on your .bash_profile or .zshrc
alias stage='. ~/path-to-file/stage.sh'
##Usage
$stage 'commit message'
Will stage all files (Modified, Deleted, Untracked, New...)
Will create a new commit with 'commit message' as message
$stage
Will show a git status (short).
Then will ask for a commit message. If the commit message is empty it will abort the process.
##Notes
On every succeded workflow it will delete all the .DS_file instances on the repository (we all hate those)
To pimp your results you can define colors on the ~/.gitconfig
file:
[core]
excludesfile = ~/.gitignore
[color]
ui = true
Protip: define your .DS_Store files on ~/.gitignore
to inherit them to all your repositories