"ActiveRecord Basics" was retired on July 1, 2018. You are now viewing the recommended replacement.
Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed GitHub Basics!
You have completed GitHub Basics!
Branching allows you to work on multiple versions of your code at once, meaning you are free to experiment until you are ready to commit.
Further reading
Git Commands:
-
git branch: list out branches
-
git branch [branch-name]: create a new branch
-
git checkout [branch-name]: switch to the newly created branch
-
git checkout -b [branch-name]: shortcut! - use this command to create & switch to the new branch
- git push origin [branch-name]: push branch & changes to GitHub
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up