I have written a bash script where I can run those same 3-4 git commands to add, commit and push a particular change to GitHub with just one command. This will ask for a commit message and will commit the change with that particular commit message. And finally will push the code.
#!/bin/bash
echo "Enter the commit message: "
read msg
git add .
git commit -m "$msg"
git push origin master
Now the problem is that I haven't set up my ssh keys but have a personal access token for authentication. So whenever I run this script, it has to ask for my username and password(PAT) and I have to fill that manually again and again.
Is there any way I can secretly store my username and password somewhere inside the repo and then it automatically reads them and enters them in the terminal whenever it asks for them??