// for storing globally
git config --global credential.helper store
git push origin <your branch>
//for folder specific
git config credential.helper store
git push origin <your branch>
// after pushing once with password from next time it wont ask for password
git remote set-url origin https://${access_token}@github.com/${someone}/${somerepo}.git
git config --global credential.helper "cache --timeout=3600"