Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to setup Tortoise Git on Windows to use BitBucket on a linux server

Mark May 23, 2018

I currently use Atlassian/BitBucket on a linux server, but use a Windows pc for my code editing etc.. of my cloned branches. Can I use Tortoise Git for windows with my linux repo in bitbucket and if so how do I set it up?

1 answer

1 vote
Kristy
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 23, 2018

Hi @Mark,

 

It doesn't matter what operating system Bitbucket Server is run on.

How you set it up depends on whether you already have code on Bitbucket, or whether your code is local and you want to put it onto Bitbucket.

 

If your code is already on Bitbucket, then you simply click the 'clone' button in the sidebar (the first button under the project icon) to get the clone URL (see the Bitbucket documentation on how to clone a repository for more details). Once you have copied the clone URL, you can give it to Tortoise Git as the 'URL' field (see the TortoiseGit documentation on how to clone a repository for more details)

 

If your code is already local, then you will need to create a repository in Bitbucket. After that you can go to the TortoiseGit settings to change/set the remote of your local repo to the clone url of the repo you just created and push your code up to Bitbucket.

 

Hope that helps,

Kristy

Mark May 24, 2018

Hi Kristy,

My initial problem is that TortoiseGit is wants me to configure the path to a Git.exe, which as far as I can tell I don't have since it's hosted on Linux and not windows. It will not let me do anything else until I give it a valid path to the exe.

A little background. We already have a Git repo that we are using on a linux server (Work stations are Windows 7) and have recently purchased Atlassian and migrated the repo to work with Bitbucket. Everything seems to work fine with the exception of getting TortoiseGit integrated due to the path issue mentioned above.

jredmond
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 24, 2018

TortoiseGit is not asking about the host server's git executable - it's asking about the git executable on the client system where you're installing TortoiseGit.

Like AlexanderT likes this
Mark May 25, 2018

I'll check with the Admin, we may not have the right installer because when you install it on the client machine it doesn't install a "git.exe"

Mark June 27, 2018

ok, the issue seems to be that we have a git repo using BitBucket on a linux server. We clone our repos into a public share folder on the linux server and work development from there accessing it from Windows 64 bit machines. So... I'm not sure how this will work since we don't have git installed on the local Windows machines. Do we need to install something like SmartGit on the linux server and work that way some how? Or install TortoiseGit on the windows machines and some how tie it into the linux public share cloned repos?

Appreciate any help!

Kristy
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 28, 2018

Hi @Mark,

May I ask why you have this set up?

Is there something stopping you from installing git on your local windows machines and cloning directly from Bitbucket rather than have a public share folder?

The easiest set up would be just to have Bitbucket running on linux, install git on your local machines, then clone directly from Bitbucket to your local machine.

Mark June 28, 2018

Yes, our team works from public folders on the linux server because we work on a closed network doing embedded development. The team is kind of large so working in a public space allows us access to everyone else cloned repos in case someone is sick or out unexpectedly. Also, we need to be able to link our individual code builds directly to our target hardware for integration and testing. We've found that this doesn't work very well using local Windows machines.

Kristy
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 30, 2018

Ah, I see.

Tortoise Git cannot use the git executable you have on the linux drive. The Tortoise Git client is a Windows program, and as such you need to install the git client locally on your Windows computers; it is a requirement of the program. 

 

Hope that helps,

Kristy

Like Brant Layton likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events