Loading presentation...

Present Remotely

Send the link below via email or IM

Copy

Present to your audience

Start remote presentation

  • Invited audience members will follow you as you navigate and present
  • People invited to a presentation do not need a Prezi account
  • This link expires 10 minutes after you close the presentation
  • A maximum of 30 users can follow your presentation
  • Learn more about this feature in our knowledge base article

Do you really want to delete this prezi?

Neither you, nor the coeditors you shared it with will be able to recover it again.

DeleteCancel

Make your likes visible on Facebook?

Connect your Facebook account to Prezi and let your likes appear on your timeline.
You can change this under Settings & Account at any time.

No, thanks

Git

Git Overview
by

khalid Eldehairy

on 14 November 2013

Comments (0)

Please log in to add your comment.

Report abuse

Transcript of Git

Git
Distributed Source Control
All are Equal
Your Repository .. Your way
Distributed
No Server-client relationships
> mkdir project_dir
> cd project_dir
>
git init
Create a repo
Working Directory
Work on your files
Staging Area
>
git add
file_name
Source Tree
>
git commit
master
Branches
>
git checkout master
>
git branch dev master
dev
master
dev
>
git clone
repo_url
master
dev
>
git remote add
remote_name

repo_url
origin
origin
boss
Bitbucket
just another repo
with a web interface
configured to play nice with others
pull
/
push
just a different topology
Working w/ Branches
Branches are just labels
branch_1
branch_2
branch_1
branch_2
branch_1
branch_2
consider the following tree
>
git checkout
branch_2
>
git merge
branch_1
branch_1
branch_2
Fastforwarding
branch_1
branch_2
branch_1
branch_2
Non-Fastforwarding
branch_1
branch_2
>
git checkout
branch_2
>
git rebase
branch_1
branch_1
branch_2
rebase
Working with Others
Main Repo Topology
Bitbucket
git clone
git pull
git pull
master
master
origin/master
origin/master
master
>
git commit
origin/master
master
>
git push
git push
git push
master
master
origin/master
origin/master
master
>
git commit
origin/master
master
>
git push
master
origin/master
>
git commit
master
origin/master
>
git push
master
origin/master
master
origin/master
master
Non-fastforwarding
Update My repo
rebase my work on the new master
push
Full transcript