• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Git: Git'ing the Basic
 

Git: Git'ing the Basic

on

  • 686 views

 

Statistics

Views

Total Views
686
Views on SlideShare
686
Embed Views
0

Actions

Likes
1
Downloads
5
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as OpenOffice

Usage Rights

CC Attribution License

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Git: Git'ing the Basic Git: Git'ing the Basic Presentation Transcript

    • Git: Giting the BasicGerald VillorenteKite Systems Inc.Drupal.IT / 06-01-2013 / Microsoft PH Makati City
    • Kite Systems Git me
    • What is Git?Git (/ t/) is a distributed revision control andɡɪsource code management (SCM) system withan emphasis on speed.[3] Initially designed anddeveloped by Linus Torvalds for Linux kerneldevelopment, Git has since been adopted bymany other projects.http://en.wikipedia.org/wiki/Git_(software)
    • Why Git?● Distributed (upstream/downstream)● Git has integrity (SHA-1)● Local and remote revisioning● Full history● Push/pull only requires internet● Fast● Its awesome!
    • Setup Git Identity● git config –global user.name “Captain Barbel”● git config –global user.email “cb@pinoyhero.net”
    • Create a New Repository● git init- Create an empty git repository or reinitialize an existingone
    • Checkout a Repository● git clone- Clone a repository into a new directory● git clone /path/to/repository● git clone username@host:/path/to/repository
    • Git Workflow
    • Add and Commit● git add- Add file contents to the index● git add <filename>● git add *● git add .● git commit- Record changes to the repository● git commit -m "Commit message"● git commit -am "Commit message"
    • Add and Commit● git add- Add file contents to the index● git add <filename>● git add *● git add .● git commit- Record changes to the repository● git commit -m "Commit message"● git commit -am "Commit message"
    • Pushing Changes● git push- Update remote refs along with associated objects● git push origin master● git push origin <branch_name>● git push <alias> <branch_name>●git push or git push <alias>
    • Adding Remote Repo Server● git remote add origin <server>● git remote add <alias> <server>
    • Branching
    • Branching● git checkout -b bayabasSwitching branch● git checkout okra● git branch -d alugbatiNOTE: a branch is not available to others unless youpush the branch to your remote repository● git push origin talong
    • Update and Merge● git pull- Fetch from and merge with another repository or a local branch● git pull origin● git pull origin <branch_name> or git pull –all● git fetch origin- Download objects and refs from another repository● git diff <source_branch> <target_branch>● git merge <branch_name>● git merge <branch_name> -m “Message”
    • Conflict during Merge● Use diff tool or “git diff” command● git add <filename>
    • Tagging● git tag 1.0.0 1b2e1d63ff
    • Replace Local Changes● git checkout -- <filename>● git pull –rebase● git reset –hard origin/<branch_name>● git clean -f
    • Git Useful Commands● git status- Show the working tree status● git log- Show commit logs● git show- Show various types of objects● git fetch- Download objects and refs from another repository● git log --oneline
    • Categorization
    • Categorization
    • Categorization
    • Categorization
    • Categorization
    • Questions?
    • References● http://rogerdudler.github.io/git-guide/● http://git-scm.com/book● https://na1.salesforce.com/help/doc/en/salesforce_● http://ndpsoftware.com/git-cheatsheet.html