Changing the git end point to azure and pushing file using https
configuring azure git end points to existing git repo end point.
git remote set-url origin https://azure-end-point
git config credential.helper 'store --file ~/.git-credentials-mysite'
(the default is stored to "~/.git-credentials". If we want different path then we can use store --file option)
git remote show origin
(the above command will ask for PAT (personal acces token). When it is given it is strored in git-credentials-mysite)
push to remote
git push origin --all
some helpful commands if remote is gone or upstream is not set
git remote add origin https://azure-end-point
git branch --set-upstream-to=origin/master master
To remove credential helper locally
git config --unset credential.helper (this will not delete the file ~/.git-credentials )
git remote set-url origin https://azure-end-point
git config credential.helper 'store --file ~/.git-credentials-mysite'
(the default is stored to "~/.git-credentials". If we want different path then we can use store --file option)
git remote show origin
(the above command will ask for PAT (personal acces token). When it is given it is strored in git-credentials-mysite)
push to remote
git push origin --all
some helpful commands if remote is gone or upstream is not set
git remote add origin https://azure-end-point
git branch --set-upstream-to=origin/master master
To remove credential helper locally
git config --unset credential.helper (this will not delete the file ~/.git-credentials )
Comments
Post a Comment