Git Work
Git Work
Presentation
Version control and Version control
systems(VCS)
• Version control, also known as source control, is the
practice of tracking and managing changes to software
code
• Working copy is the place where you make your changes. Whenever
stored in a disk.
Staging area
The staging area stores information about what will go into your next commit
• Commiting files:
To start using Git in a project, you need to initialize a Git repository. This
is done by running the ‘git init’ command in the project's root directory.
This creates a hidden subfolder within the project that houses the
The staging area (or index) is a space where you prepare your
Once you're satisfied with the changes in the staging area, you
previous commit.
Cont’
• Branching:
(e.g., on GitHub, GitLab, Bitbucket). This is done using commands like ‘git
push’ (sending changes to the remote repository) and ‘git pull’ (retrieving
• Clone:
merging them into your working directory. If you want to fetch and
• Push:
To share your local commits with others, you push them to a remote
repository using the ‘git push’ command. This makes your changes
• Tagging: