Slide 1

Slide 1 text

Git Basics

Slide 2

Slide 2 text

Setup & Config  Create a public repo in Github  Install git in local apt-get install git  ssh setup https://help.github.com/articles/generating-ssh-ke ys/  Add global config for git in local git config --global user.name "Awin Abi" git config --global user.email [email protected]

Slide 3

Slide 3 text

Daily Git  Clone git clone  Add changes git add  Status git status  Commit git commit  Log git log  Push git push origin master  Pull git pull origin master

Slide 4

Slide 4 text

Some Concepts

Slide 5

Slide 5 text

Branching & Merging  A branch is a movable pointer to one of these commits  New Branch git checkout -b  Switch Branch git checkout  Merge git checkout master git merge

Slide 6

Slide 6 text

No content

Slide 7

Slide 7 text

No content

Slide 8

Slide 8 text

Pull Request  Create a new branch from master for a new ticket '33452/fix-approver-view'  Make changes and commit  Push the new branch to github  Create pull request  Comment / Review  Merge Pull Request https://guides.github.com/introduction/flow/

Slide 9

Slide 9 text

Git Session II  Simple merge  Merge with conflicts  Rebase  Meld and Netbeans Git

Slide 10

Slide 10 text

Notes  Download Git plugin for Netbeans 6.9:: https://code.google.com/p/nbgit/downloads/detail?name=nbgit-0.4- netbeans-6.9.nbm&can=2&q=0.4  Install meld tool:: sudo apt-get install meld  Configure meld as diff and merge tool:: git config --global diff.external meld git config --global merge.tool meld

Slide 11

Slide 11 text

Questions

Slide 12

Slide 12 text

Thank You