1
\$\begingroup\$

Hello Game Development Stack Exchange,

I and a couple of collaborators are working on an Unreal Engine project, we do not share a common network, which meant that using a local network storage to hold the data wasn't plausible.

I discovered that Unreal Engine allows Source Control through Git services, so I created a private repository on GitLab that all Collaborators have access to.

Inside of Unreal Engine, I created a Project with the Minimal C++ with Starter Content, edited the 'Minimal_Default' map a little bit, inserted some new assets, placed them on the map. Made sure all my needed asset information was being checked-in to Source Control, saved everything, then Submitted to Source Control, named the commit, then committed locally.

Now outside of Unreal Engine, using TortoiseGit for Windows I pushed the commit to the GitLab repository, all the necessary files were uploaded. However, when I cloned the same repository to another machine, and opening (with the same exact engine version), the 'Minimal_Default' map was the original, not the updated one. The assets I imported are inside of the Content Browser, but the assets are not placed around the level as I did to the commit.

So, my question states, how do I get the 'Minimal_Default' level to be committed and opened when the Git repo is cloned? Am I missing something in Unreal Engine, Pushing, or something else?

All help would be greatly appreciated.

Sincerely, Shejan Shuza

\$\endgroup\$
0
\$\begingroup\$

Remember to stage the changes of the map inside your commit

Even if Sourcetree is marking your files as modified (checked-in) you still have to add your file inside your commit (aka stage the modified file).

Also after you commit some changes, you need to push them to the remote (usually origin).

A complete workflow would look like this:

  • Make sure your file is tracked/ added
  • Change your file
  • Save it
  • Add to staging area
  • Write your commit message
  • Commit locally
  • Push to remote

Others have to fetch the origin and pull to get your changes.

If this does not solve your problem, please do share a photo of the commit itself, so we can see what's going on.

\$\endgroup\$
  • \$\begingroup\$ Because git is terrible at binary data it's also possible that Unreal sets a .gitignore property to skip map data, then any "git add..." would not include your change by default. I'll have to check on that, my environment is down right now. \$\endgroup\$ – Patrick Hughes Jan 23 at 18:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.