Want to learn Git without falling asleep? You're in the right place.
Want to learn Git without falling asleep? You're in the right place.
Learning version control can be tricky and boring, we're here to make it easy and fun. Using game development as the example project, we'll be showing step-by-step how to get into git (get it?).
By the end of the course you'll have an indispensable tool, that will allow you to...
Protect your valuable work using git version control.
Explore creative options using Atlassian's SourceTree & the terminal / command line.
Backup efficiently to the Internet, specifically GitHub but GitLab and BitBucket are mentioned.
Learn all the common version control workflows that you'll need day-to-day.
Lay the foundations for collaboration with others.
You won't only be learning the science of version control, but the art too. For example you'll learn common usage patterns that keep your live simple, and even how to setup your online portfolio to show your work in the best light.
Your instructor, Ben Tristem, is the founder of GameDev tv, and has taught 100,000s of students to code and use creative software from scratch, so you're in good hands. No prior experience of version control, git, or coding required.
We'll be covering Windows, however MacOS and Linux users can also follow along with a little modification.
Get plugged into our communities of amazing developers on Facebook (nearly 20k), in our own TA-curated Community (17k views/day), and our student chat group (10k live at any one time).
Let's dive in and get this mini super-power learnt in no time.
Ben Tristem, founder of GameDev.tv, explains why this is a good course to take. If it's been a while since you signed-up it's a good idea to start with this video.
In this video (objectives)…
About the GameDev.tv Discord live chat server
About the GameDev.tv community forum
Where to find the resources on Udemy
After watching (learning outcomes)…
You'll be able to ask for help when you need it.
(Unique Video Reference: 1_IS_GIT)
In this video (objectives)…
Git can help you revert your work
Git can protect you against version upgrades
Git can help you explore alternative approaches
GitHub can help you share your work online
After watching (learning outcomes)…
Cite at least one benefit of using the git ecosystem.
(Unique Video Reference: 2_IS_GIT)
In this video (objectives)…
How git is the version control software
SourceTree, GitHub Desktop & GitKraken as GUI options
BitBucket, GitHub and GitLab as online options
After watching (learning outcomes)…
Name at least one Graphical User Interface for Git, and one online git hosting service.
(Unique Video Reference: 3_IS_GIT)
A few simple questions to help you consolidate your knowledge. Feel free to look things up as you go, this isn't a memory test.
In this video (objectives)…
Setup your GitHub account (or spruce if if you have one)
Share the account with our community
After watching (learning outcomes)…
You'll have a basic GitHub account setup
(Unique Video Reference: 4_IS_GIT)
In this video (objectives)…
Download Atlassian's SourceTree app
Login to your Atlassian account to allow app access
Optional: Log SourceTree out of your Atlassian account!
Log SourceTree into your GitHub account
After watching (learning outcomes)…
Install SourceTree on PC and connect it to GitHub
(Unique Video Reference: 5_IS_GIT)
In this video (objectives)…
Download SourceTree on Mac
Login to your Atlassian account
Connect SourceTree to GitHub
Deal with some Mac specific issues
After watching (learning outcomes)…
Install SourceTree on MacOS
(Unique Video Reference: 6_IS_GIT)
In this video (objectives)…
Thanks for sticking with me
We’re all setup on Mac & PC
Faith Linux people will keep up
Will also need Unity setup. You’re project ok.
Let’s start using it next!
After watching (learning outcomes)…
Feel ready to start using version control
(Unique Video Reference: 7_IS_GIT)
In this video (objectives)…
An overview of PRIRP
Project > Repo > Ignore > Remote > Push
Do NOT try and follow along
After watching (learning outcomes)…
Have an outline understanding of the section's outcomes.
(Unique Video Reference: 1_UG_GIT)
In this video (objectives)…
Create a minimal Unity sample project
Learn about the 100MB single file limit with GitHub
Know where to find your project on disc
After watching (learning outcomes)…
Know about git's 100 MB file limitation, and that otherwise you can get going right away.
(Unique Video Reference: 2_UG_GIT)
In this video (objectives)…
Show hidden files in Explorer / Finder
Create new local repository in SourceTree
Notice the .git folder that’s created
Demonstrate how SourceTree bookmarks work
After watching (learning outcomes)…
Create a new local repository in a project directory.
(Unique Video Reference: 3_UG_GIT)
In this video (objectives)…
Ignore the Library folder
Observe the .gitignore folder that’s created
See GitHub’s list of .gitignore files
Update with the latest Unity .gitignore
After watching (learning outcomes)…
Use a .gitignore file to prevent git from tracking certain patterns of files.
(Unique Video Reference: 4_UG_GIT)
In this video (objectives)…
Stage your file changes consciously
Write a meaningful commit message
Take a quick look at the history
Make another project change
Stage and commit these new changes
Congratulations on starting to build a history
After watching (learning outcomes)…
Stage the files you want to track, and commit to git.
(Unique Video Reference: 5_UG_GIT)
In this video (objectives)…
Setup a new repository on GitHub.
About naming repos, and bookmarks.
Do NOT add a readme, .gitignore or license at this stage (keep it bare)
Add the remote to SourceTree.
After watching (learning outcomes)…
Create a bare remote repository on GitHub and connect it to git via SourceTree.
(Unique Video Reference: 6_UG_GIT)
In this video (objectives)…
Recap the whole process so far.
Push our "master branch" to GitHub.
See what's changed in SourceTree.
See what's changed at GitHub.
After watching (learning outcomes)…
Push your project to GitHub.
(Unique Video Reference: 7_UG_GIT)
In this video (objectives)…
About our Unity Course Community Facebook group.
How to use Stash with git.
After watching (learning outcomes)…
Stash your work when you want to go back to a previous commit.
(Unique Video Reference: 1_CC_GIT)
In this video (objectives)…
Commit a few example changes.
See how this impacts SourceTree.
Understand the difference between local and remote.
After watching (learning outcomes)…
Fell confident in "committing" changes to version control.
(Unique Video Reference: 2_CC_GIT Commit)
In this video (objectives)…
Experiment with creating "hanging" branches.
Do your first formal challenge.
Understand what a branch is.
After watching (learning outcomes)…
Create a new branch, and switch between branches.
(Unique Video Reference: 3_CC_GIT)
In this video (objectives)…
Demonstrate a simple merge.
Experience your first merge conflict.
Practice merging branches.
After watching (learning outcomes)…
Perform a conflict-free merge.
(Unique Video Reference: 4_CC_GIT)
In this video (objectives)…
Decide to use a hanging branch's assets.
Retrospectively fix the root cause.
Perform a merge.
Resolve using "mine"
After watching (learning outcomes)…
Resolve simple merge conflicts using "mine" or "theirs".
(Unique Video Reference: 5_CC_GIT)
In this video (objectives)…
See how "reverse commit" works.
Reverse a change from a previous commit.
Practice doing this yourself.
Also see about "Reset current branch to this commit".
After watching (learning outcomes)…
You'll be able to reverse the changes made in previous commits.
(Unique Video Reference: 6_CC_GIT)
Ben Tristem recaps what he taught you about Git, GitHub and SourceTree in this section.
(Unique Video Reference: 7_CC_GIT)
In this video (objectives)…
What's coming up in this section.
After watching (learning outcomes)…
Know what to expect from this section.
(Unique Video Reference: 1_RW_GIT)
In this video (objectives)…
How GitHub contributors, repositories, branches and profiles relate.
About the ownership of repositories.
What to consider when customising your GitHub profile.
Improve your profile and share with the community.
After watching (learning outcomes)…
Improve the structure of your GitHub profile.
(Unique Video Reference: 2_RW_GIT)
In this video (objectives)…
Visit the Complete Unity Developer 2.0 organisation.
Clone any game you fancy.
Upgrade it to the latest Unity.
Check the game runs.
Commit.
After watching (learning outcomes)…
Be able to clone a public repository on GitHub to your local machine.
(Unique Video Reference: 3_RW_GIT)
In this video (objectives)…
Make a code change in a project.
Observe how the "hunks" and line insertion / deletions work in SourceTree.
See how the changes are shown on the terminal.
Stage from the terminal with git add .
Commit using git commit -m "My commit message"
After watching (learning outcomes)…
Be able to commit from the command line (AKA terminal).
(Unique Video Reference: 4_RW_GIT)
In this video (objectives)…
How to quickly get to your online repository from SourceTree.
Use "reset hard" to destroy information locally.
Try and force push with SourceTree or git push -f
Learn about GitHub's branch protection system.
Do your on first force push - consciously.
After watching (learning outcomes)…
Perform a force push, and understand you usually "shouldn't" do it.
(Unique Video Reference: 5_RW_GIT)
In this video (objectives)…
Clone Realm Rush. Checkout pt-ring-buffer.
Define refactor and look in GUI.
Run git diff and explain in less and use q.
Add the SHA to the diff.
Add --stat to the command.
Filter by *.cs.
Final command git diff e1eb974e334e7d0ea0b7d3ef3ec37448633b3c95 --stat *.cs
After watching (learning outcomes)…
Use the terminal to examine the net effect of a refactor sequence.
(Unique Video Reference: 6_RW_GIT)
In this video (objectives)…
Cherry pick “Target closest enemy”.
Show how to “refresh” your repo view.
Explain why we have a merge conflict.
Show that Stash doesn’t work right now.
Show you can Stash to abandon cherry pick.
After watching (learning outcomes)…
Use "cherry pick" to pick file(s) from somewhere else in the history.
(Unique Video Reference: 7_RW_GIT)
In this video (objectives)…
Initialise Git LFS & track large files
git lfs migrate import
Note how history changes
Push to GitHub
After watching (learning outcomes)…
Use Git LFS to track files over 100MB and send them to GitHub, even if they are already in your history.
(Unique Video Reference: 8_RW_GIT)
In this video (objectives)…
A systematic tour of the GitHub website.
After watching (learning outcomes)…
Understand what GitHub has to offer better.
(Unique Video Reference: 9_RW_GIT)
In this video (objectives)…
See the "Raw" view on GitHub.
See the "Blame" view on GitHub.
See the "History" view on GitHub.
After watching (learning outcomes)…
Use "Blame" on GitHub to determine in which commit every line of code in a file was added.
(Unique Video Reference: 9b_RW_GIT)
In this video (objectives)…
Thanks for completing the section
We’ve learnt a lot more about GitHub
And by proxy GitLab and BitBucket
We’ve unlocked the power of the Terminal
Learned some important day-to-day tools
Git LFS is pretty cool, see next section for Unity
Thanks for being our student
See you in the next section, or another course.
After watching (learning outcomes)…
Recall what was done this section.
(Unique Video Reference: 10_RW_GIT)
In this video (objectives)…
Unity Engine focus in this section.
Using Unity 2019 but should apply in future.
Use Unity’s GitHub integration for VCS in engine.
See how to merge scenes together.
Understand prefabs better.
Learn more about team workflow.
After watching (learning outcomes)…
Understand what's coming this section.
(Unique Video Reference: 1_UG_GIT)
In this video (objectives)…
Visit Project Settings > Editor.
Set Version Control > Mode to "Visible Meta Files".
Set Asset Serialization > Mode to "Force Text".
Look at impact of making changes in the scene.
See how prefabs can prevent changes to a scene file.
After watching (learning outcomes)…
Use version control as an "x-ray" machine, to determine how Unity really works in terms of file changes.
(Unique Video Reference: 2_UU_GIT)
In this video (objectives)…
Install GitHub for Unity from the asset store.
See what changes the plugin makes.
Commit the changes to the Plugin directory.
Explore the features of the plugin.
File locking to be covered in a future video.
After watching (learning outcomes)…
Install, commit and push using the GitHub for Unity plugin.
(Unique Video Reference: 3_UU_GIT)
In this video (objectives)…
Overview the lock > commit > unlock process.
Remember not to commit changes to locked files.
Walk through examples of how to lock, release and commit.
After watching (learning outcomes)…
Use locks within the GitHub for Unity plugin to aid in collaboration.
(Unique Video Reference: 4_UU_GIT)
OpenCourser helps millions of learners each year. People visit us to learn workspace skills, ace their exams, and nurture their curiosity.
Our extensive catalog contains over 50,000 courses and twice as many books. Browse by search, by topic, or even by career interests. We'll match you to the right resources quickly.
Find this site helpful? Tell a friend about us.
We're supported by our community of learners. When you purchase or subscribe to courses and programs or purchase books, we may earn a commission from our partners.
Your purchases help us maintain our catalog and keep our servers humming without ads.
Thank you for supporting OpenCourser.