Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll

- 2x 2x
- 1.75x 1.75x
- 1.5x 1.5x
- 1.25x 1.25x
- 1.1x 1.1x
- 1x 1x
- 0.75x 0.75x
- 0.5x 0.5x
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 up-
okilydokily
12,105 Points0 Answers
-
PLUS
Gonzalo Torres del Fierro
Courses Plus Student 16,751 Points0 Answers
-
anthonybrackner
17,776 Points0 Answers
-
Rachelle Williams
3,656 Points2 Answers
-
Adam Rubinson
4,286 PointsPushed new branch to GitHub. Didn't get asked for password.
Posted by Adam RubinsonAdam Rubinson
4,286 Points1 Answer
-
Jerome vanGaalen
18,941 Points1 Answer
-
Andrea Faciane
10,042 Points1 Answer
-
Justin Molyneaux
13,329 Points1 Answer
-
Malachi Dean
3,694 Points1 Answer
-
PLUS
cb123
Courses Plus Student 9,858 Points3 Answers
View all discussions for this video
Related 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