Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 0 additions & 29 deletions _stylesheets/page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -190,32 +190,3 @@ footer {
}
}
}


.cheat-sheet{
-webkit-column-count: 2;
-moz-column-count: 2;
column-count: 2;

-webkit-column-gap: 4em;
-moz-column-gap: 4em;
column-gap: 4em;

h1, h1+p{
display: none;
}

h2:first-of-type{
margin-top: 0;
}

h2:last-of-type{
-webkit-column-span: all;
-moz-column-span: all;
column-span: all;

padding-top: 1em;
margin-top: 1em;
border-top: solid 1px $mono-light;
}
}
38 changes: 25 additions & 13 deletions downloads/github-git-cheat-sheet.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@ byline: Git is the open source distributed version control system that facilitat
leadingpath: ../
---

# GitHub Git Cheat Sheet

Git is the open source distributed version control system that facilitates GitHub activities on your laptop or desktop. This cheat sheet summarizes commonly used Git command line instructions for quick reference.

{% capture colOne %}
## Install Git
GitHub provides desktop clients that include a graphical user interface for the most common repository actions and an automatically updating command line edition of Git for advanced scenarios.

Expand All @@ -26,7 +23,6 @@ http://git-scm.com
## Configure tooling
Configure user information for all local repositories


```$ git config --global user.name "[name]"```

Sets the name you want attached to your commit transactions
Expand All @@ -50,6 +46,14 @@ Creates a new local repository with the specified name

Downloads a project and its entire version history

{% endcapture %}
<div class="col-md-6">
{{ colOne | markdownify }}
</div>


{% capture colTwo %}

## Make changes
Review edits and craft a commit transaction

Expand Down Expand Up @@ -110,8 +114,15 @@ Combines the specified branch’s history into the current branch
```$ git branch -d [branch-name]```

Deletes the specified branch
{% endcapture %}
<div class="col-md-6">
{{ colTwo | markdownify }}
</div>
<div class="clearfix"></div>

---

{% capture colThree %}
## Refactor file names
Relocate and remove versioned files

Expand Down Expand Up @@ -168,7 +179,12 @@ Lists all stashed changesets
```$ git stash drop```

Discards the most recently stashed changeset
{% endcapture %}
<div class="col-md-6">
{{ colThree | markdownify }}
</div>

{% capture colFour %}
## Review history
Browse and inspect the evolution of project files

Expand Down Expand Up @@ -227,11 +243,7 @@ Uploads all local branch commits to GitHub
```$ git pull```

Downloads bookmark history and incorporates changes

---

## GitHub Training
Learn more about using GitHub and Git. Email the Training Team or visit our website for learning event schedules and private class availability.

* [email protected]
* training.github.com
{% endcapture %}
<div class="col-md-6">
{{ colFour | markdownify }}
</div>