I am creating a Java application that allows a user to push some changes to a git repository without having to use the command line.
So far I have the ability to run a bash script that is setup to stage changes, commit, and push. The commit summary and description are filled in by arguments from when the script is executed in the program (the GUI receives the user's inputs, stores them in variables, and then uses those variables when executing the script).
Everything works well, but then comes up the necessity to log into a Github, Bitbucket, etc. account. Is there a way for me to securely receive the credentials from the Java GUI and then fill them in automatically to the running script?