4. What is GitHub?
§ Cloud-based
platform for building, collaborating
and managing open source projects
§ Built
on Git
§ 4+
million projects
§ 1+
million developers
5. Why Git/GitHub?
§ DVCS
§ Full
(Distributed Version Control System)
copy distribution
§ Branching,
§ Strong
merging, issues, wiki
community
29. Get Code
1. Fork
§ Fork:
Cloud copy
§ Clone:
Local copy
Upstream/
Master
5. Pull Request
Your Fork
4. Push
2. Clone
3. Pull/
Merge
Your Clone
$ git clone https://github.com/alaframboise/quickstart-mapjs.git!
30. Make Local Commits
1. Fork
§ Add
changes to the index
§ Store
local edits
Upstream/
Master
5. Pull Request
Your Fork
4. Push
2. Clone
3. Pull/
Merge
Your Clone
--- Local Commits ---
$ git add * !
$ git commit –m “These are my cool edits to code”!
31. Merge and Push Code
1. Fork
§ Create
§ Pull
remote connection
and merge edits
§ Push
to your cloud
Upstream/
Master
5. Pull Request
Your Fork
4. Push
2. Clone
3. Pull/
Merge
Your Clone
Tip: Always merge before pushing
$ git add remote upstream https://github.com/Esri/
quickstart-map-js.git!
$ git pull upstream master!
$ git push origin master!
40. Final Notes
§ Get
on GitHub!
§ Check
§ Find
out the esri.github.com
a project
§ Follow
a project
§ Create
a project
§ Make
§ Join
a pull request
the community