How to Use Git and GitHub | Version Control for Code
Details
Git is used by many tech companies, and a public GitHub profile serves as a great portfolio for any developer. But more than that, you’ll establish an efficient programming workflow that allows you to:
- Keep track of multiple versions of a file
- Track bugs by reverting to previous working versions of a file
- Seamlessly collaborate with other developers on a project
The use of tools like Git and GitHub is essential for collaborating with other developers in most professional environments.
While this course does not involve programming, students should have some experience with a programming or markup language. Additionally, students should be familiar with navigating the command line. If unfamiliar or if you want a refresher, check out these instructions.
Outline
In this lesson, you’ll learn about a few different types of version control systems and discover what makes Git a great version control system for programmers. You’ll also get practice using Git to view the history of an existing project. You’ll learn to see all the versions that have been saved, checkout a previous version, and compare two different versions.
Lesson 2: Creating and Modifying a RepositoryIn this lesson, you’ll learn how to create a repository and save versions of your project. You’ll learn about the staging area, committing your code, branching, and merging, and how you can use these to make you more efficient and effective.
Lesson 3: Using GitHub to CollaborateIn this lesson, you’ll get practice using GitHub or other remote repositories to share your changes with others and collaborate on multi-developer projects. You’ll learn how to make and review a pull request on GitHub. Finally, you’ll get practice by collaborating with other Udacity students to write a create-your-own-adventure story.
Project: Contribute to a Live ProjectStudents will publish a repository containing their reflections from the course and submit a pull request to a collaborative Create-Your-Own-Adventure story.
Speaker/s
Before joining Udacity, Caroline worked as a Software Engineer at Quixey, a startup building a search engine for apps. While receiving her undergraduate degree from Carnegie Mellon, she was a TA for six different courses, and that same love for teaching later led her to join Udacity. Outside of work, she likes reading fiction, playing board games, and drinking bubble tea.
Sarah Spikes earned her BS and MS in Computer Science at Stanford, where she spent a lot of time as a Teaching Assistant. She spent two years at Google as a Software Engineer before following her passion for teaching by joining Udacity. In her spare time, Sarah enjoys performing musical theatre, making sorbet and rock climbing.
Our mission is to bring accessible, affordable, engaging, and highly effective higher education to the world. We believe that higher education is a basic human right, and we seek to empower our students to advance their education and careers.
Education is no longer a one-time event but a lifelong experience. Education should be less passive listening (no long lectures) and more active doing. Education should empower students to succeed not just in school but in life.