forked from jlord/git-it
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request jlord#215 from royneau/revision_help
Fix help text
- Loading branch information
Showing
1 changed file
with
19 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,33 @@ | ||
{cyan}{bold} | ||
HELPFUL THINGS{/bold}{/cyan} | ||
|
||
- Get stuck? Find an error? File and issue at: | ||
{bold}github.com/jlord/git-it{/bold} | ||
|
||
{cyan} | ||
GIT COMMANDS | ||
------------{/cyan} | ||
|
||
{cyan}Configuration{/cyan} | ||
|
||
{bold}Configure your name{/bold} | ||
|
||
$ git config --global user.name "Your Name" | ||
|
||
{bold}Configure your username{/bold} | ||
|
||
$ git config --global user.username githubusername | ||
|
||
{bold}Configure your email{/bold} | ||
|
||
$ git config --global user.email [email protected] | ||
|
||
{cyan}Check in{/cyan} | ||
|
||
{bold}Check status of changes to a repository{/bold} | ||
|
||
$ git status | ||
|
||
{bold}View changes between commits{/bold} | ||
|
||
$ git diff | ||
|
@@ -44,7 +44,7 @@ | |
message describing the changes{/bold} | ||
|
||
$ git commit -m "your commit message" | ||
|
||
{cyan}Remotes{/cyan} | ||
|
||
{bold}To push your changes to a remote{/bold} | ||
|
@@ -54,15 +54,15 @@ | |
{bold}To pull in changes from remote{/bold} | ||
|
||
$ git pull <REMOTENAME> <BRANCHNAME> | ||
|
||
{bold}To set a URL for a remote{/bold} | ||
|
||
$ git remote set-url <REMOTENAME> <BRANCHNAME> | ||
$ git remote set-url <REMOTENAME> <URL> | ||
|
||
{bold}Add a remote{/bold} | ||
|
||
$ git remote add <REMOTENAME> <BRANCHNAME> | ||
$ git remote add <REMOTENAME> <URL> | ||
|
||
{cyan}Branches{/cyan} | ||
|
||
{bold}Merge a branch into current branch{/bold} | ||
|
@@ -74,7 +74,7 @@ | |
$ git checkout <BRANCHNAME> | ||
|
||
{bold}Delete a local branch{/bold} | ||
|
||
$ git branch -d <BRANCHNAME> | ||
|
||
{bold}Delete a remote branch{/bold} | ||
|
@@ -92,18 +92,18 @@ | |
{bold}Navigate into an existing folder (aka change directory){/bold} | ||
|
||
$ cd <FOLDERNAME> | ||
|
||
{bold}Back out of a folder/directory{/bold} | ||
|
||
$ cd .. | ||
|
||
{bold}Back out all the way to the root directory{/bold} | ||
|
||
$ cd | ||
|
||
{bold}List the items in a folder{/bold} | ||
$ ls | ||
|
||
$ ls | ||
|
||
{bold}Remove (delete) a file{/bold} | ||
|
||
|
@@ -112,4 +112,4 @@ | |
{bold}Remove (delete) a folder{/bold} | ||
|
||
$ rm -rf <FOLDERNAME> | ||
|