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:
- Branch
- Make changes
- Stage
- Commit
- 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.