git-session-slides
git-session-slides
Git Session
What is Git?
Git
- Easy to learn
- Lightning-fast performance.
What is GitHub?
GitHub
GitHub
Git GitHub
LINUX
MACOS
WINDOWS
A Git Repository
(or a repo) is a
folder that you’ve Repo stored on your Central repo from where
told Git to help you computer everyone pulls/pushes
changes
track your file
changes
OPEN SOURCE WORKFLOW
Clone/ Pull
Push
Pull Request
git init
git status
git status
git add
add commit
WORKING WORKING
AREA STAGING
AREA VENUS
REPOSITORY
AREA
checkout branch
FORK VS CLONE
fork clone
Repository on
GitHub Local Computer
GIT FORK Central Repository
(upstream)
Your repo
Local Computer
Changes made to the forked repository
can be merged with the original repository
via a pull request.
Edits Edits
REMOTE vs UPSTREAM
git remote -v
git remote add <name> <url>
git branch
git branch -d <branch>
PULL REQUESTS
FETCH vs PULL
git pull
git pull <remote>
MERGE CONFLICTS
SOLVED MERGE CONFLICTS 🥳
git log
- Git log is a flexible command which
allows users to view the history of the
repository.
git log
git rebase
- Git rebase is use to modify the commit
history.
● https://www.youtube.com/watch?v=w3jLJU7DT5E
● https://www.youtube.com/watch?v=hwP7WQkmECE
● https://www.youtube.com/watch?v=yySsukXlnzg&list=PLLt4yMoVgcz
VgFcTzT60U5IXtNX1qjHL9
● https://codeburst.io/git-and-github-in-a-nutshell-b0a3cc06458f
● https://frontendmasters.com/workshops/git-indepth/
THANKS!
Raina Jain
Ashlesha Dixit
Apoorve Shukla
Aditya Chhaparia