GIT Command
GIT Command
INTRODUCTION TO
GIT
LEA R N C O DIN G
2.What is Repository ?
- A Git repository is a virtual storage of your project.
- It allows you to save versions of your code, which you
can access when needed.
- It tracks and saves the history of all changes made to
the files
Two types of Repository:
1. Local Repository
2. Remote Repository
git init
git commit
git pull
git add
$ git status
git diff
$ git diff
git branch
git checkout
$ git remote -v
git log
$ git log
git stash
$ git status
git fetch
$ git revert
git rm
team
team mambers
made changes in
version 1 mambers 1
made changes
same file and tries
and pushed it
to push
version 2A version 2B
conflicts are
team mamber 2 resolved and
faces conflict due version 2AB pushed
to change in
same files. Both
should have
discussion and version B
merge their
changes together