# Cannot Connect to Source Control

**URL:** <https://forums.unrealengine.com/t/cannot-connect-to-source-control/314112>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [April 7, 2015, 3:21am UTC](https://forums.unrealengine.com/t/cannot-connect-to-source-control/314112 "2015-04-07T03:21:26Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![mister0il](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mister0il](https://forums.unrealengine.com/u/mister0il)\
**Post date:** [April 7, 2015, 3:21am UTC](https://forums.unrealengine.com/t/cannot-connect-to-source-control/314112/1 "2015-04-07T03:21:26Z")

</div>

I’m trying to publish a project that my class is working on. Unfortunately, no method of in-engine source control is working. I must be doing something wrong, but, after reading every tutorial available I can’t figure out what mistake I’m making.

I’m using 4.7.4, so, according to the walkthrough, it’s just as simple as clicking connect to source control, choosing git, and then clicking accept. At this point I receive an error “Cannot connect to source control, check your settings and connection and try again.” I have no idea what settings this refers to, so, I’m not sure where to look. Connection is fine for everything else.

I tried using my school’s SVN server and I get the same issue. I’ve read the documentation for source control but I don’t see any hints. I appreciate any replies.

---

<div class="post-metadata">

**Author:** ![SRombauts](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SRombauts](https://forums.unrealengine.com/u/SRombauts)\
**Post date:** [April 10, 2015, 7:19pm UTC](https://forums.unrealengine.com/t/cannot-connect-to-source-control/314112/2 "2015-04-10T19:19:05Z")

</div>

Hi!

To import your project into source control, you first need to import it with a dedicated tool.  
For instance, the creation of the Git project can be done in command line with the “git init” inside your project directory.  
See [https://answers.unrealengine.com/questions/190819/source-control-error-project-is-not-part-of-a-git.html](https://answers.unrealengine.com/questions/190819/source-control-error-project-is-not-part-of-a-git.html)

Also, my git plugin was not working with Mac in 4.7.x, see for instance:  
[https://answers.unrealengine.com/questions/180455/trouble-setting-up-bitbucket-source-control-471.html](https://answers.unrealengine.com/questions/180455/trouble-setting-up-bitbucket-source-control-471.html)

There is also a wiki tutorial:

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

Let me know if this help!

Cheers!

---

<div class="post-metadata">

**Author:** ![mister0il](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mister0il](https://forums.unrealengine.com/u/mister0il)\
**Post date:** [April 11, 2015, 2:15am UTC](https://forums.unrealengine.com/t/cannot-connect-to-source-control/314112/3 "2015-04-11T02:15:55Z")

</div>

I appreciate your reply, unfortunately running git init in gitshell (my global user.name and user.email were set when I did this as well) did not resolve my problem. I thought the problem might have been with my machine, so, I tried a different machine on the same local network but I ran into the same problems.

---

<div class="post-metadata">

**Author:** ![SRombauts](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SRombauts](https://forums.unrealengine.com/u/SRombauts)\
**Post date:** [April 11, 2015, 6:27am UTC](https://forums.unrealengine.com/t/cannot-connect-to-source-control/314112/4 "2015-04-11T06:27:02Z")

</div>

So, are you using a Windows 7 or Windows 8 64 bits PC?

Did you see anything special in the logs? See “Window-\>Developer Tools-\>Output Log”, and look for “LogSourceControl:” error messages

And can you post these logs here? You can find them in a \*.log file in your project “Saved\Logs” subdirectory. I’ll look at it.

---

<div class="post-metadata">

**Author:** ![mister0il](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mister0il](https://forums.unrealengine.com/u/mister0il)\
**Post date:** [April 12, 2015, 1:32am UTC](https://forums.unrealengine.com/t/cannot-connect-to-source-control/314112/5 "2015-04-12T01:32:38Z")

</div>

My machine runs Windows 7 64bit. Here’s the log when I try to connect:

```
LogSourceControl: RunCommandInternalRaw: 'git version'
LogSourceControl: RunCommandInternalRaw: ExecProcess ReturnCode=2 OutResults=''
SourceControl:Error: Error Failed to connect to source control. Check your settings and connection then try again.
SourceControl: Info Source control is disabled

```

When I saw that no version was being returned I realized I did not have the actual git binaries installed on these machines, just github’s interface with gitshell. My mistake! I had never actually used git for source control, just cloning projects and sharing some code with friends. Thanks so much for your time, everything is working now!

---

<div class="post-metadata">

**Author:** ![SRombauts](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SRombauts](https://forums.unrealengine.com/u/SRombauts)\
**Post date:** [April 12, 2015, 7:51am UTC](https://forums.unrealengine.com/t/cannot-connect-to-source-control/314112/6 "2015-04-12T07:51:52Z")

</div>

Yes, correct! So for the next version UE4.8 I have added auto-detection of Git binaries shipped with “GitHub for Windows”, but also with SourceTree and SmartGit 🙂

---

<div class="post-metadata">

**Author:** ![Detilium](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/detilium/32/985007_2.png) [@Detilium](https://forums.unrealengine.com/u/Detilium)\
**Post date:** [June 15, 2015, 8:42am UTC](https://forums.unrealengine.com/t/cannot-connect-to-source-control/314112/7 "2015-06-15T08:42:00Z")

</div>

Could you please explain exactly what you did? I can’t make it work, and I don’t quite understand what you did exactly?

---

<div class="post-metadata">

**Author:** ![mister0il](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mister0il](https://forums.unrealengine.com/u/mister0il)\
**Post date:** [June 15, 2015, 7:18pm UTC](https://forums.unrealengine.com/t/cannot-connect-to-source-control/314112/8 "2015-06-15T19:18:00Z")

</div>

I had to download and install git binaries. I got them here [Git - Downloading Package](https://git-scm.com/download/win)

I did not have to set any environment variables, but, you might have to on some machines. Sorry for the delayed reply, I’ve been at Bonnaroo all week!
