Obert Chen
About
Blog
Contact
Links
Me & I
June 23, 2022
Using Github with Unity
https://desktop.github.com/
–> Install the correct version of GitHub Desktop for your operating system.
https://unity3d.com/unity/qa/lts-releases
–> Install the correct version of Unity for your project. Use Unity Hub to help manage all the Unity versions and programs.
https://github.com/hashbert/MeAndINew
–> Go to the repository. Click on the green “Code” button, then click “Open with GitHub Desktop”
GitHub Desktop will ask you where you would like to locally store the copied repo. Afterwards, GitHub Desktop should open to the picture shown above. Make sure to click “Fetch Origin”. You may then need to “Pull Origin” to pull the latest updates from the main branch.
Click the “Current branch” tab in the middle, then click “New Branch”. Name it a descriptive name based on what you will be adding to the repo (For example: Obert-ArtForLevel01), then click “Create”.
Click “Publish branch”. Now, any changes you make while working in this branch will not affect the main branch until you Pull Request. After the Pull Request is Merged into the main branch, the main branch will be updated. On your end after the PR/Merge, you will have to go to the main branch and Fetch Origin and Pull Origin in order to make sure you are most up to date with the main branch. Then you must delete your old branch that was merged onto the main branch by clicking the middle tab with Current branch “main”, then right clicking on “Obert-ArtForLevel01” and delete on your local and remote if asked. You will create a new branch using the step above this one in the exact same way. This process is called GitHub flow. The documentation can be found here:
https://docs.github.com/en/get-started/quickstart/github-flow
Example of Deleting your branch after a successful PR/Merge into the main branch. It might ask for you to delete it off of the remote as well. You should check yes to this if it asks for this.
Open Unity Hub. Click Open, “Add project from disk”. Navigate to the folder that you put the repo in. Open the newly added project in Unity Hub by clicking on the name of the project in the Projects tab.
Share this:
Twitter
Facebook
Like
Loading…
Leave a comment
Cancel reply
Δ
Categories:
Unity Dev Log
· Tagged:
Previous Post
Next Post
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here:
Cookie Policy
Loading Comments...
Write a Comment...
Email (Required)
Name (Required)
Website
Comment
Reblog
Subscribe
Subscribed
Obert Chen
Sign me up
Already have a WordPress.com account?
Log in now.
Obert Chen
Edit Site
Subscribe
Subscribed
Sign up
Log in
Copy shortlink
Report this content
View post in Reader
Manage subscriptions
Collapse this bar
%d
Design a site like this with WordPress.com
Get started