DEV Community

Vinoth Kumar
Vinoth Kumar

Posted on

GIT SESSION:

GIT(Global Information Tracker):
is a distributed version control system that helps track and manage changes in code over time. It allows multiple developers to work on the same project, view previous versions, and restore changes when needed.

  1. Multiple developers can work together and merge changes easily.
  2. Revert to previous versions whenever needed.
  3. Develop features separately and merge them safely.
  4. Each developer has a full copy of the repo.

Git Version:

git version 2.30.2.windows.1
Enter fullscreen mode Exit fullscreen mode

Concepts of GIT:

  1. Repositories.
  2. Commits.
  3. Branches.
  4. Merging.
  5. Cloning.
  6. Pull and Push.

Repositories:
is a storage space where your project files and their history are kept.

Commits:
is a snapshot of your project at a specific point in time. Each commit has a unique identifier (hash) and includes a message describing the changes made. Commits allow you to track and review the history of your project.

Branches:(TBD)
allow developers to work on separate tasks without affecting the main codebase.

Merging:(TBD)
is the process of integrating changes from one branch into another. It allows you to combine the work done in different branches and resolve any conflicts that arise.

Cloning:
a repository means creating a local copy of a remote repository. This copy includes all files, branches, and commit history.

Pull and Push:

  1. Fetches updates from the remote repository and integrates them into your local repository.
  2. Sends your local changes to the remote repository, making them available to others.

Top comments (0)