unix - Adding Git Commit to bash_profile with prompt? -



unix - Adding Git Commit to bash_profile with prompt? -

i want aliases for:

git add together --a git commit -m "" git force origin master git pull origin master

i have made them all, except how have terminal prompt me commit message, , store it?

so:

commit "what's commit message" added footer <enter> git commit -m "added footer"

is possible do?

i tried doing printf , read variable, , inserting $variable didn't work.

use functions instead of aliases:

#!/usr/bin/env bash commit(){ echo "what's commit message?" read msg git commit -m "$msg" }

git unix terminal

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -