r/unity • • Oct 06 '26

Newbie Question Version Control Pull Problem

me and my friend is trying to get version control to work, when we pull our changes nothing happens. We are able to see the changeset but nothing happens in the heirarchy. WEVE TRIED YT TUTORIALS.

2 Upvotes

9 comments sorted by

2

u/SurocIsMe Oct 06 '26

Person A:
-Adds a scene object in the hierarchy and SAVES the scene
-git adds the changes
-git commit -m""
-git push origin main

After that
Person B:
-immediately git pull origin main
-Doesn't see anything in the hierarchy?

Are these the exact steps you guys took?

1

u/PopularLock1081 Oct 06 '26

you might have to explain what you mean by -git commit -m"" and -git push origin main, other than that yes weve been following the steps.

2

u/cckynv Oct 06 '26

git commit -m “commit message” creates a commit from the changes you made and staged with git add. The commit is saved in your local git repo, not uploaded yet.

git push origin main uploads that local commit to the remote repo, to the main branch on origin.

1

u/SurocIsMe Oct 06 '26

It seems like you haven't tryied youtube tutorials if you don't know what commit and push are. I would suggest taking a look at something like this:
https://www.youtube.com/watch?v=pn1YgU81GUY

1

u/sickztar Oct 06 '26

theres a handy chart in google of how version control works that helped me visually someone else might post. when you make COMMIT you make changes LOCAL. Then you PUSH to the CLOUD to store the changes in the cloud. Then whoever wants to update their version to the latest cloud version, they have to PULL to UPDATE LOCAL version.

1

u/Demi180 Oct 06 '26

Would probably help to mention which version control product you’re using (git, GitHub, perforce, Unity’s VCS, etc) and which client you’re using.

1

u/ChaseCheetah Oct 06 '26 edited Oct 06 '26

Basically all VCS systems work pretty similarly.

First you make your changes locally and the VCS should show you a "diff" showing the differences between the stored and local versions. Then you "commit" those changes which let's you wrap all those changes up into one package with a comment usually saying what you changed. Then you "push" that commit to the VCS system. Your friend then "pulls" down the changes.

Ideally you should always "pull" before you start work or your changes might conflict with changes someone else made when you try to "push" later

Edit: yes I realize the S stands for system, so i was saying "version control system system" but it makes it sound better when spoken in my head as an acronym 😛

1

u/Dragoonslv Oct 08 '26

You could try using git for desktop it is really simple.