http://github.com/[user]/hello-world
http://[user].github.io
stevejbrown/rss_article_recommender
github.com/[user0]/[repo] (orig, web) |
github.com/[user]/[repo] (you, web) |
~/github/[repo] (you, local) |
|
---|---|---|---|
(1x) | fork | clone | |
commit | |||
branch | |||
push | |||
merge | pull request |
where:
[user0]
is the original user or organization[repo]
is a repository[user]
is your github username (eg bbest
)README.md
Track Changes view with "Rendered" button to view differences between versions of a text file: additions in green, removals in red strikethrough. Details: Rendering differences in prose documents
Image view show differences in 3 ways: 2-up, swipe and onion skin views. Details: Rendering and diffing images
CSV view allow for on the fly tabular view, searching for text, and linking to specific rows of data. Details: Rendering CSV and TSV data.
Geographic view of GeoJSON or topojson files render automatically as a map. Details: Mapping geoJSON files on GitHub
interactive map with zoom, click on details, OpenStreetMap
Create a hello-world repository and tour some of Github's most useful features. You only need a web browser and Github account (no git or other desktop software required).
Sign up for a new GitHub account
Follow the GitHub Guide Hello World to walk through essentials of: repositories, branches, commits, issues and pull requests.
Create a website repository in Github. You only need a web browser and Github account (no git or other desktop software required).
[user].github.io
, where [user]
is your github username
Fork the repo stevejbrown/rss_article_recommender.
Clone your forked repo to your desktop
mkdir ~/github
cd ~/github
git clone https://github.com/[user]/rss_article_recommender.git
cd rss_article_recommender
[user].txt
where [user]
is your Github username. We'll start with each of us editing different files so as to avoid merge conflicts.Commit changes and push
This presentation was created in markdown (see index.md) and rendered as an HTML slideshow with pandoc. Details: Producing slide shows with Pandoc. To render the HTML, the content was placed in the gh-pages branch of the ds-git repo.
Here's some code to get the idea:
# clone "ds-git" repository made on github.com to local machine
cd ~/github
git clone https://github.com/bbest/ds-git.git
# create new "gh-pages" branch
cd ds-git
git checkout -b gh-pages
# create document index.md in editor like http://atom.io
# convert from markdown (*.md) to html slidy with options
pandoc \
-t slidy \
--self-contained --incremental --slide-level=2 \
--css=octicons/octicons.css \
index.md \
-o index.html
# check status, note untracked files
git status
# add files for git tracking, and commit changes locally
git add *
git commit -a -m 'initial presentation'
# push to remote, set upstream (1x)
git push -u origin gh-pages
# push (after 1x)
git push
To see all the pandoc options:
pandoc --help
Also set the default branch to gh-pages, since master not otherwise being used.