GITHUB
GITHUB
AND
GITHUB
WHAT IS GIT?
Git is a distributed version control
system that allows multiple people to
collaborate on a project. It tracks
changes to files, allows for easy
branching and merging, and provides a
complete history of all changes made.
BENEFITS OF GIT
Using Git has several advantages. It
provides a backup of your code,
facilitates collaboration among
team members, allows for easy
experimentation with different
versions, and helps in debugging
and troubleshooting.
USING GITHUB WITH GIT
HEAD HEAD
master master
Git Reset
Undo commits or unstage
changes in your
repository.
Git Reset and Revert
Git Stash
Sometimes you want to switch the branches, but you are
working on an incomplete part of your current project. You
don't want to make a commit of half-done work. Git stashing
allows you to do so. The git stash command enables you to
switch branches without committing the current branch.
git stash