How do you pull from existing Bitbucket GIT repo using Visual Studio 17?
Error "git failed with a fatal error. 'xyz' repository not found "
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
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.
VS -> Manage connections -> login the bitbucket repo.
And you can also clone a bitbucket repo directly after login.
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 is https://bitbucket.org/account/reponame
) -> save.
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
into master
branch -> merge.
To clone the bitbucket repo by command line, you can follow below steps:
Credential Manager -> Windows Credentials -> remove all the credentials about bitbucket.org
Now you can clone the butbucket repo by command git clone https://bitbucket.org/account/reponame
directly, it will let you to input your email address and password.