9
Beginner’s Guide to Git

Beginner's guide to git

  • Upload
    lim-sim

  • View
    197

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Beginner's guide to git

Beginner’s Guide to Git

Page 2: Beginner's guide to git

Who am I?Lim SimTesterTwitter: lsim001http://codinglegends.com/

Page 3: Beginner's guide to git

What we will do today●Learn a bit about version control systems

●Create a new repository●Make a change and commit it to the repository

●Pulled down changes

Page 4: Beginner's guide to git

Version Control Systems●What does it do?●Distributed vs Centralised●Is Git the only one?

Page 5: Beginner's guide to git

What is Git?●Distributed version control system●Everybody has a copy of repository●Don’t need network connection to work

Page 6: Beginner's guide to git

Terminology●repository●master●origin●pull●checkout●commit●push

Page 7: Beginner's guide to git

Let’s do something...●Create a new repository in Github●But look...there’s more!

Page 8: Beginner's guide to git

Getting your project from GitHub

>> git clone <name of repository>

Page 9: Beginner's guide to git

Save a new file

>> git add <name of file>>> git commit -m “<what changes have been made>”>> git push>> git pull>> git reset --hard origin/master