Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Start a free Courses trial
to watch this video
Let's review everything we've learned in this course.
Common Git Commands
- Starting a repo
git init
- Committing files
-
git add
andgit commit
git status
git log
-
- Managing committed files
-
git rm
andgit mv
git revert
-
- Working with remotes
git clone
git pull
git remote
git push
But there are other important features we haven't covered, such as branches and merging file changes. You can learn more about those in our Git Branches and Merging course.
Practice and Further Reading
- Try using Git for all your Treehouse projects. If you have any saved project folders already, use
git init
to convert them to Git repos, then commit all your files. And for any new projects you create, use Git from the very start. Not only will this let you practice using Git, it will give you more protection against losing your work. - We've set up a copy of the practice repo from Stage 2 on GitHub. Try forking it, cloning it to a local repo, making changes, and then pushing them back up to your forked repo.
Atlassian, creators of BitBucket, have an excellent set of Git tutorials as well.
If you haven't installed or used Git on your computer yet, and you want to, see the Teacher's Notes section of this video's page.
On many systems, Git is configured to use the vi
text editor by default. You may want to familiarize yourself with basic vi
commands.
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