Pushing to git repository hosted by Visual studio online without entering user name and password

74 views Asked by At

I have a git repository hosted by Visual Studio online. And I want write a script that will automatically Add, Commit and push.

I wrote this:

git add --all
git commit -m "commit_$date"
git push -u origin 

But when it runs, it always asks me to enter my credentials. how can I integrate the credentials into the push command?

Thanks

0

There are 0 answers