Is it a bad idea to store passwords in my global git configuration?
This is not laravel related but i have created a bash script that will automatically create a git repo in my current folder, create a remote in bitbucket, push it there and also create the deployment setup in ftploy. using both bitbucket and ftploy apis.
Its neat coz i only need to issue a single command and does everything. all i need to supply is the ssh user/pass for my specific project.
bitbucket and ftploy user/password thought i store in git global configuration file so i can easily pull them in my bash script. I am saving them using a command such as
git config --global bitbucket.user.pass "mypassword"
just wondering if its generally is a bad idea to store passwords in my global git configuration file?
i am using bitbucket api to create a repo via command line. the api requires the username/password i dont see anywhere in the docs how to authenticate using an ssh key.