Gitpresentation 140814102916 Phpapp01 160321215224
Gitpresentation 140814102916 Phpapp01 160321215224
By:Naim Latifi
Hope you had a great summer !
Agenda
Stage files
commit files
Push
Checkout
Fetch
Pull
eb97f66 HEAD
fa00e49
HEAD fa00e49
79c6e38
a82bc13 HEAD
fa00e49 HEAD
GIT commits ab3342 tree
• .
Tree object
Blob-stores
ab3342c
data
ab3354c SHA-1
checksum
abffs42c
Commit –
637ddx
tree – 321dzr
GIT three way merge
It takes the two latest commits from branch (bb00e39, ab4532) and the most
common ancestor of the two (bb00e39) and creates a new commit (bb00e39)
after successful merge
Master branch
ab00e50 ab4532
Test branch
GIT rebasing
The major benefit of rebasing is that you get a much cleaner project history
GIT will "undo" all commits on master that happened Master branch
after the lines began to branch out (common ancestor) and save Test branch
them temporarily
Master
ab00e50 ab4532
It then will integrate the commits
from our test branch, then the new
commits on branch master are
reapplied on top of integrated Test
commits from branch Test Master
bb00e39
Checkout a tracked file to untracked file. This command is also used for
switching between branches
Updates remote repository and merge changes with your local repo
An example scenario
Origin
Bmaster
clone
B
master
Local BBoxes
repo
Alice John George
QUESTIONS