Conclusion

In this lesson, you learned how to configure Git, how to initialize a new repository in a directory, and how to have Git manage files in an existing directory.

You learned the basic workflow and standard commands for working with a Git repository:

  1. Branch
  2. Make changes
  3. Stage
  4. Commit
  5. Merge

You saw that you can tag specific commits to make it easier to find them later and how to amend a commit when you accidentally forget to stage a file.

You also saw how to resolve some issues, such as needing to stash changes and conflicting changes.

By now, you should feel confident that you can:

  • Install and configure Git on your computer.
  • Create a Git repository for your project.
  • Add, commit, and merge changes to your Git repository.

In the next lesson, you’ll add working with a remote repository and with other people. You’ll see how to send your changes to a shared location and how to get changes from teammates. You’ll also see how a pull-request system helps a team collaborate.

See forum comments
Download course materials from Github
Previous: Merging Demo Next: Quiz Time