Skip to content

Using Git and GitHub

Lloyd Heberlie edited this page Feb 7, 2013 · 1 revision

This document may help with some of the first commands you are likely going to need to use.

Using a Git Client to clone the arcgis-viewer-flex and heatmap-widget-flex repositories

  • Open the Terminal Application and clone the arcgis-viewer-flex repo
heb:FlexViewer lheberlie$ pwd
/Users/lheberlie/Git/Development/FlexViewer
heb:FlexViewer lheberlie$ git clone https://github.com/Esri/arcgis-viewer-flex.git
Cloning into 'arcgis-viewer-flex'...
remote: Counting objects: 1611, done.
remote: Compressing objects: 100% (1032/1032), done.
remote: Total 1611 (delta 866), reused 1295 (delta 550)
Receiving objects: 100% (1611/1611), 2.33 MiB | 1.20 MiB/s, done.
Resolving deltas: 100% (866/866), done.
heb:arcgis-viewer-flex lheberlie(master)$ ls
README.md		html-template		license.txt		src
arcgis-viewer-flex.png	libs			locale
  • Clone the heatmap-widget-flex repo
heb:FlexViewer lheberlie$ pwd
/Users/lheberlie/Git/Development/FlexViewer
heb:FlexViewer lheberlie$ git clone https://github.com/Esri/heatmap-widget-flex.git
Cloning into 'heatmap-widget-flex'...
remote: Counting objects: 64, done.
remote: Compressing objects: 100% (42/42), done.
remote: Total 64 (delta 11), reused 64 (delta 11)
Unpacking objects: 100% (64/64), done.
heb:heatmap-widget-flex lheberlie(master)$ ls
CHANGELOG.md		build.properties	heatmap-widget-flex.png	src
README.md		build.xml		license.txt		viewer-HeatMapWidget
build-deps		env-template.properties	samples-HeatMap
  • Clone the heatmap-widget-flex documentation
heb:FlexViewer lheberlie$ pwd
/Users/lheberlie/Git/Development/FlexViewer
heb:FlexViewer lheberlie$ git clone https://github.com/Esri/heatmap-widget-flex.wiki.git
Cloning into 'heatmap-widget-flex.wiki'...
remote: Counting objects: 85, done.
remote: Compressing objects: 100% (80/80), done.
remote: Total 85 (delta 5), reused 85 (delta 5)
Unpacking objects: 100% (85/85), done.
  • Change to a specific release / tag branch
heb:arcgis-viewer-flex lheberlie(master)$ git tag --list
3.1-src
flexviewer-2.5-src
flexviewer-3.0-src
flexviewer-3.0Prerelease-src

heb:arcgis-viewer-flex lheberlie(master)$ git checkout tags/flexviewer-3.0-src
  • Create a new local branch and check it out from the remote develop branch
git checkout -b develop origin/develop