Wednesday, July 3, 2019

Push code to azure repos using vs code

Push code to azure repos using vs code
While creating and pushing code to azure repo in Azure devops , for the first time I have to push code

>git init
>git add .
>git commit -am "Add function app"
>git remote add origin
> git push -u origin --all
Note : In case if you confront an error “Fatal : Remote origin already exists.” while pushing code to Azure Repos
please use this command before “add origin” git remote rm  origin

Please refer below images for references

After pushing code to Azure devops ,Jump to Repos in order to see the content you pushed. Please refer below image for reference.

Hope it will help you sometime while start work with Azure DevOps :)


Post a Comment