Skip to content
Kobld edited this page Jan 19, 2016 · 2 revisions

GitHub Command Line

This is a tutorial on Git as a command line tool.

Step 1

Log into Github.com and go to the proper repository

Step 2

Copy the clone URL.

Step 3

Press the start button on your keyboard and type cmd.

This will open your command prompt.

Step 4

Look in the directory and find the desktop.
The command to show the contents of the current directory is "dir".

Step 5

Change directory to the desktop. The command to change directory is "cd"

Step 6

Clone the repo to your desktop.
Notice that because I'm on a school computer I'm using an absolute path to the git.exe but your computer may be able to just use "git" to do the same thing if it is in the $Path Variable

Step 7

Change directory into the project.

Step 8

Checkout your branch.
This step essentially switches you to a different branch of the project.

Step 9

Work on the project just like you would normally.
If you followed these instructions the project will be on your desktop.

Step 10

You can check the status of what files you've changed.
The command it "status". For example this is without changes:

And with changes:

Step 11

Stash your changes.

Step 12

Pop them into the master and submit a pull request.