问题描述
How do you pull from existing Bitbucket GIT repo using Visual Studio 17?
- I added this Misty BitBucket Extension from the marketplace
- Then I added the Git remote string as below with three types of options and this help page.
First I tried this string -> https://<repo_owner>@bitbucket.org/<accountname>/<reponame>.git
& https://<repo_owner>@bitbucket.org/<accountname>/<reponame>
then I tried the URL path based on youtube videos & the over settings page https://bitbucket.org/myrepo/xos/src
- I get errors that the repo does not exist.
Would appreciate some help on how to setup/pull/fetch/sync code from Bitbucket.
Update 1: the error after adding the Clear Credentials Tool & extracting the SSH
Update 2: @Marina-Liu, even after hitting connect, bitbucket connection does NOT show in Visual Studio 2017
If you are a user of the bitbucket repo, please make sure you have permission to clone the private repo. And then you can pull the bitbucket repo’s changes to the local existing repo.
Login bitbucket.
VS -> Manage connections -> login the bitbucket repo.
And you can also clone a bitbucket repo directly after login.
Add bitbucket repo as remote.
In VS -> open your local repo -> in the right-bottom corner of VS -> it lists your repo folder name and branch name -> Team Explorer -> Settings -> Repository settings -> add remotes -> add a remote name (such as
bit
) -> input your bitbucket repo url (the format ishttps://bitbucket.org/account/reponame
) -> save.Pull changes from bitbucket repo to the local existing repo.
Fetch changes from bitbucket repo first:
Team explorer -> Sync -> Fetch -> select the remote name you just added (such as bit) -> Fetch.
If the local existing repo has not the origin remote, you can pull changes from bitbucket repo directly. If the local repo has other remote(s) except
bit
, you should merge bitbucket repo's changes into the local branch:Team explorer -> Branches -> Merge -> assume merge
bit/master
intomaster
branch -> merge.
To clone the bitbucket repo by command line, you can follow below steps:
Clear existing credential
Credential Manager -> Windows Credentials -> remove all the credentials about bitbucket.org
Clone by command line
Now you can clone the butbucket repo by command
git clone https://bitbucket.org/account/reponam
e directly, it will let you to input your email address and password.
这篇关于Git Visual Studio with Bitbucket confluence Connect to existing project error/Fetch failed的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!