Accessing Git repo
See original GitHub issueThis is maybe not directly on issue with the tasks but more with the agent. What is the recommended approach to run Git operation during a build?
My use case is that I have a repository utilizing git-lfs. Since VSTS only does a checkout I manually need to call git lfs fetch
afterwards. The problem here is the authentication. I want to avoid to have to setup an service account for accessing the repo just for this case. The agent already somehow manages to checkout the repo. Is it possible to use the same approach for additional operations?
Issue Analytics
- State:
- Created 8 years ago
- Comments:17 (15 by maintainers)
Top Results From Across the Web
Getting a Git Repository - Git SCM
Getting Git on a Server will introduce all of the available options the server can set up to access your Git repository and...
Read more >How to access a Git repo? - SiteGround KB
The Git repo created by the Git tool is created in the home folder of your site. It is named .git. To clone...
Read more >How to connect to a remote Git repository? - Stack Overflow
Right click the folder "MY_GIT_REPOSITORY" and select "Sharing". This will give you the ability to share your git repository as a network ...
Read more >About remote repositories - GitHub Docs
When you git clone , git fetch , git pull , or git push to a remote repository using HTTPS URLs on the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@ericsciple - would you happen to have any additional info on the possibility of VSTS builds being able to checkout multiple git repositories? Would be very nice to have first-class support for this.
Dave Burnison mentions the steps needed to cleanly clone the git repo yourself:
(see his ‘June 1, 2016 at 8:22 pm’ comment here: https://blogs.msdn.microsoft.com/premier_developer/2016/04/13/tips-for-writing-powershell-scripts-to-use-in-build-and-release-tasks/)
It’s something we want to do for multiple reasons. It’s not next though.