Using Git Locally
Explore how to use Git for local version control by understanding key terms like repository, staging, and commit. Learn to initialize a Git repo, add files, commit changes, and revert to previous versions, helping you manage your project effectively.
Git jargon
Git uses very particular vocabulary, and familiarity with it will make it easier for you to communicate with your team members and the online community. Here are some common terms,
Repository
To put it simply, a project is a repository. Git repositories or ‘repos’ contain all of the code and version history of a certain project.
Working directory
The working directory is the folder on your local computer where your project exists. Git would track any changes made within that folder.
Commit
Git does not save or store any changes made to the files within your working directory until you ‘commit’ it. Commits save the changes you made to Git itself.
Staging
However, suppose you made changes to 8 files ...