Introduction to Version Control with Git
Presented by Zackary Lowery and David Myers at Town Hack Columbus 2014
This presentation is available online at https://townhack.github.io/git-101
Photo courtesy of
J J on Flickr
via the
Creative Commons Attribution-NonCommercial-NoDerivs 2.0 Generic
license
Photo courtesy of
Ed Yourdon on Flickr
via the
Attribution-NonCommercial-ShareAlike 2.0 Generic
license
Windows
|
Download the installer from http://git-scm.com/download/win |
Mac OS X >=10.9
|
Attempting to run git from the terminal for the first time will prompt you to install the XCode Command Line Tools |
Mac OS X <10.9
|
Download the installer from http://git-scm.com/download/mac |
Linux
|
Install using your distribution's package manager |
git clone https://github.com/TownHack/git-101.git
<p>
<small>
Presented by {{Your Name Here}}
at
<a href="https://townhack.co">
Town Hack Columbus
</a>
2014
</small>
</p>
git checkout index.html
mkdir myproject
cd myproject
git init
touch README.md
git add README.md
git status
git commit -m "Add a README file to myproject"
git remote add origin https://github.com/<user>/<repo>.git
git pull
git push
Photo courtesy of
Aris Sánchez
via the
Attribution-NonCommercial-ShareAlike 2.0 Generic
license
The number of planets are
<<<<<<< HEAD
nine
=======
eight
>>>>>>> branch-name
.
Example borrowed from
Github
git checkout -b mybranch