I've got private repo which uses Cert auth for https connection. This is why I can't use standard getting
But I can clone repo using SSH. Is there any way to do it in VSTS?
No, it is not supported in VSTS, you can follow up this uservoice: fetch source from Git via SSH in Visual Studio Team Services.
You may get the source by calling git clone ssh://xxx command through command line task during the build.
Related
I have an existing visual studio solution which was cloned from a git repo (in azure devops). I recently reinstalled windows and vidual studio 2019. The solution is still there in my computer. I just need to connect the same to the repository in devops.
I connected to the azure devops account using team explorer (after opening the solution in visual studio). The connection happened, but the solution files are closed and there is only option to clone the repository (see screenshot)
If I click on "Git changes"/ "Git repository" , it takes me to the git menu which has only option to create or clone repository.
Even without the team explorer, the only git options that I can see are clone or create.
What am I doing wrong?
what is the correct way to connect exiting repo without cloning?
In the toolbar try clicking Git --> Manage Remotes. I'm assuming these are blank due to reinstalling windows. Click add, name it origin and add the clone url from the relevant azure repo for both Fetch and Push.
This can also be done using git bash by CDing into the solution folder and using the following command
git remote add origin [repo-url]
I am trying to use appcenter with azuredevops services.
I have created a solution "HelloWorld" on local PC in VS 2017 and added to local Git repository
I have created a project in AzureDevOps "MobileApps"
How do I import my new shiny solution in VS2017 "HelloWorld" into AzureDevOps?
Any walkthrough?
I can make it work if
I start from azuredevops and clone in visual studio.Bcse I then get a prompt in visual studio to create a new solution in the new cloned repo.
But Cannot find a way to import a repository from Visual studio into AzureDevOps.
Links that i saw but did not work .Also outdated with azuredevops.
How to Import project code from local machine to Azure Repos?
You should be following these steps to add your local git repo to Azure DevOps
Create a git repo in Azure DevOps repos
Copy the clone url from Azure DevOps and use below command to configure your local repo to use Azure DevOps repo as the remote repo. Edit command from local git repo root folder.
git remote add origin <url-from-Azure repos>
Then you should be able to push your local content to Azure repos..you can use below commands
git add .
git commit -m 'your comment'
git push -u origin master
I was looking to update my local repository using GitLab UI. Is this possible without using the command line or any other client application such as GitHUB desktop.
Thanks
GitLab UI represents first your remote repos, as hosting by the remote Git repositories hosting servers.
It can show you the git command to execute in order to clone your Git repository, but you would still need to use that URL in a local tool or CLI, like git clone /url/gitlab/repo.
Would like to use VSTS Git repository with TortoiseSVN or any other open source client for source control. I will not going to use VS SDK for my project files as all of them are static HTML files but I really want to push files to Git on VSTS.
TortoiseSVN is the tool for SVN (not Git) client source control system.
It's ok use any GUIs to connect with VSTS git repo instead of using VS.
Such as you can use TortoiseGit, SourceTree etc to connect with VSTS git repo.
Is it possible to create a new VSTS Git remote repository from a Git client?
Right now, I have to go to visualstudio.com first to create the new repository before adding and pushing it from PC git, using the url created in VSTS.
I tried the following:
git remote add brandnew xx.visualstudio.com/PROJECT/_git/qqq
git push brandnew --all
where I am the owner of xx.visualstudio.com and PROJECT is an existing project, but qqq does not exist.
The above gives me:
remote: TF401019: The Git repository with name or identifier qqq does not exist or you do not have permissions for the operation you are attempting.
fatal: repository 'https://xx.visualstudio.com/PROJECT/_git/qqq/' not found
Yes, it's possible.
Even you can not create a VSTS git repo by git command line by default, but you can achieve it via git hooks.
And for the reason why you can create and publish new VSTS git repo via VS, it that VS will create the new VSTS git repo by API not by git commands.
So if you want achieve this feature in git command line, you can use pre-push hook for assistance. Functions need to achieve in pre-push hook as below:
Detect if the remote repo https://xx.visualstudio.com/PROJECT/_git/qqq exist or not.
If the repo is not exist in VSTS, then create by REST API.