- What conflicts are: If you had this script first:
print("Hello")
If both branches (Main and Testing) pulled this into their branch, and both made changes, once you merge/pull it will cause a conflict.
For example:
Main
print("Hello")
local test = 0
print(test)
Testing
print("Hello")
local movement = Vector3.new(0, 1, 0)
print(movement)
Since both branches made changes to the file it will cause a conflict. You will then be prompted to pick between these options:
- Keep file from Main
- Keep file from Testing
- Check changes in VS Code (or another preferred code editor)
The first two are self explanatory, you will just pick which file to keep. If you click the last one you will open the file and go through what changes were made and pick case by case which one you want to keep. Here it would show the following:
print("Hello")
local test = 0
print(test)
local movement = Vector3.new(0, 1, 0)
print(movement)
I showed the example in this but it looks more fancy and intuitive in the actual code editor. But yea you just pick which to keep or if you keep both, it will just append both changes under eachother.
I hope this helped clear github up! If you have any questions about it lmk. For rojo I cant really help cause I've never used it. With github the reason its so good is cause u can very easily revert to old versions or keep stable copies while working on new stuff. This makes it so you never risk breaking your entire game without being able to revert. So whenever you work with anything like github or similar, make sure everyone works in their own branches, and you always have a main branch which holds the stable, working version