1
0
mirror of https://github.com/tiimgreen/github-cheat-sheet.git synced 2025-08-13 11:23:57 +02:00

Update grammar and code examples

This commit is contained in:
Tim Green
2014-04-13 22:02:40 +01:00
parent a133383679
commit a81674434c

View File

@@ -39,7 +39,7 @@ Adding `?w=1` to any diff URL will remove any changes only in whitespace, enabli
## Cloning a Repo ## Cloning a Repo
When cloning a repo the `.git` can be left off the edge. When cloning a repo the `.git` can be left off the end.
```bash ```bash
$ git clone https://github.com/tiimgreen/github-cheat-sheet $ git clone https://github.com/tiimgreen/github-cheat-sheet
@@ -47,7 +47,7 @@ $ git clone https://github.com/tiimgreen/github-cheat-sheet
## Hub - Git Wrapper ## Hub - Git Wrapper
[Hub](https://github.com/github/hub) is a command line tool that wraps git in order to extend it with extra features and commands that make working with GitHub easier. [Hub](https://github.com/github/hub) is a command line git wrapper that gives extra features and commands that make working with GitHub easier.
This allows you to do things like: This allows you to do things like:
@@ -55,10 +55,10 @@ This allows you to do things like:
$ hub clone tiimgreen/toc $ hub clone tiimgreen/toc
``` ```
Which translates to: instead of:
```bash ```bash
$ git clone git://github.com/tiimgreen/toc.git $ git clone https://github.com/tiimgreen/toc.git
``` ```
## Previous Branch ## Previous Branch
@@ -77,6 +77,9 @@ $ git checkout -
$ git checkout - $ git checkout -
# Switched to branch 'next' # Switched to branch 'next'
$ git checkout -
# Switched to branch 'master'
``` ```
## git.io ## git.io