It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to use SourceTree in a virtual desktop environment

Andrew Goldfine Feb 27, 2015

My university has setup for my lab a Windows 7 virtual desktop environment to run my analyses with all data stored on a network drive. I do not have administrator privileges. Problem is that every time I login and click on SourceTree it's as if I'm running it for the first time. It doesn't know where my local repository is and I have to finish the install and reclone the repository. I think the problem is that every time I log out, all data on the "C" drive is erased. Is there a way to get SourceTree to work in this setting? If not, is there some other way to synchronize my code (which is saved in a network drive, available from the virtual desktop environment)?

 

Thanks for your help!

1 answer

0 votes
Seth Feb 28, 2015

Whichever way you cut the cake, you need a git client of some sort installed. If nothing is installed now, you should petition your professors or the IT department to AT LEAST install a git command line environment.

In terms of avoiding re-cloning, you could set up your local repo (the one you keep re-cloning) on some sort of removable media (assuming you can mount that in the virtual environment). Git shouldn't have the same problems treating removable media as local that it does if you try to treat network storage as local.

Andrew Goldfine Mar 01, 2015

Thanks for the quick reply. They did install source tree, bit every time I logout and then login source tree has forgotten everything I did and I need to start over with it. The code is stored on a network drive so I don't need to reclone it, I just need source tree to know where it is.

Would a command like code be more robust so each time I login I type the same set of command telling it where online my code is and where the local copy is and to synchronize them? If so, what code should I use?

Thanks again

Seth Mar 02, 2015

If you open SourceTree and click the Terminal button, SourceTree will launch a standard command-line git client. You should be able to navigate and use any existing repository, regardless of whether it has been bookmarked by SourceTree. You may occasionally get strange error messages when working with a repository on network storage. This question and other questions that are linked within it all related to using git on network storage: https://answers.atlassian.com/questions/275021/fatal-unable-to-write-new-index-file

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder

...ipe.sh :  #!/bin/bash source "$(dirname "$0")/common.sh" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

1,925 views 1 19
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you