Upload
lim-sim
View
197
Download
0
Embed Size (px)
Citation preview
Beginner’s Guide to Git
Who am I?Lim SimTesterTwitter: lsim001http://codinglegends.com/
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
Version Control Systems●What does it do?●Distributed vs Centralised●Is Git the only one?
What is Git?●Distributed version control system●Everybody has a copy of repository●Don’t need network connection to work
Terminology●repository●master●origin●pull●checkout●commit●push
Let’s do something...●Create a new repository in Github●But look...there’s more!
Getting your project from GitHub
>> git clone <name of repository>
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