DEV Community

Cover image for Key Git Concepts
Esimit Karlgusta
Esimit Karlgusta

Posted on

Key Git Concepts

Whether you are working for Google, Microsoft or any startup in tech, these are the key concepts that you will always here. Will always use:

  1. Repository
  2. Commit
  3. Branch
  4. Merge
  5. Clone
  6. Pull
  7. Push
  8. Staging(Index)

So, what are they?

1. Repository(repo)

This is a directory that contains your project files and a .git folder for tracking versions.

2. Commit

A snapshot of your changes. Think of it like saving your work.

3. Branch

A separate line of development. Useful for working on features or fixes without affecting the main code.

4. Merge

Combines changes from different branches.

5. Clone

Copies a remote repository to your local machine.

6. Pull

Gets the latest changes from a remote repo. Let's say I have already cloned the organizations project. If I want to get what others have worked on and has been merged, I do a pull.

7. Push

Sends your local changes to a remote repo. This is the work you have done.

8. Staging(Index)

An intermediate area where commits are prepared.

That's all.

Happy Coding!

Solopreneur Update 🚀

Quick heads-up: LaunchLinker, my tool to connect influencers and startups, is almost ready. Can’t wait to share it with you soon!

Top comments (0)