you already setup everything, so now you just need to repeat step 4 and 7Ĩ.every now and then, you should commit and push to save your progress.if it asks you to login with your password, then do thatĭouble-check: you should now see "origin/master" in the left sidebar triple-check: refresh your GitHub repo page.You can do this at any point in your work session. click the Push button to push all commits to GitHub.To upload your files to GitHub, you need to "push" your commits We need to tell your "local" repo about the "remote" repo on GitHub Now on your empty GitHub repo page, copy the URL underneath "Quick setup".DO NOT ADD A LICENSE (you can do that later if you want).DO NOT ADD A GITIGNORE (we already did that in step 2).DO NOT "INITIALIZE THIS REPOSITORY WITH A README".Click the green Create repository button! DO NOT CLICK OR EDIT ANYTHING ELSE.type in a good descriptive name, like "gamedev_midterm", or whatever your game concept is.go to, log-in, click the + button in upper-right corner, and select New Repository.We need to create your repo's twin on GitHub, the "remote" repo So far, we have done this only on your own "local" computer. Once you've staged all your files and written a Commit message, click the Commit buttonĭouble-check: you should now see your new commit in the 'Master' timeline.Typically you'll want to Stage each file you want to comment(hint: all of them) to commit a file, you must "stage" it first.bad example: "blah" or "rat salad" or "I hate git".good example: "initial commit" or "added new script for level 3, changed rock model to look more orange".in the 'Message' area of your Commit panel, type a good message to describe your changes.Git is only useful if you make commits - a commit is a snapshot / backup of all the files in your folder save a backup / snapshot (a "commit") in Git IT WILL TELL SOURCETREE TO IGNORE UNDER-THE-HOOD PARTS OF YOUR UNITY PROJECT THAT DON'T REQUIRE VERSION CONTROLĭouble-check: if you see over 1000 untracked files then you did not do step 3 correctly 4. GITIGNORE FILE AND PUT IT IN THE ROOT OF YOUR PROJECT DIRECTORY.** create a Git folder ("repository") for your Unity project folderĭOWNLOAD THIS. go to and download and install it for freeĢ.make sure you know the folder's location on your hard drive. ![]() it's OK if it's a brand new Unity project. ![]() THIS CAN SEEM TRICKY AND STRANGE AT FIRST, BUT WITH PRACTICE, YOU WILL BE SET FOR THE REST OF YOUR DEV DAYS
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |