emailconfirmed, nsInternRO, nsInternRW, Administrators
3,356
edits
| m (Fixed headline numbering) | |||
| (3 intermediate revisions by the same user not shown) | |||
| Line 23: | Line 23: | ||
|    git config --global color.status auto |    git config --global color.status auto | ||
|    git config --global color.branch auto |    git config --global color.branch auto | ||
| Sometimes you have to enter messages in a terminal editor and the default may be vim or emacs. If you like to use another editor, there's this global option: | |||
|   git config --global core.editor "nano" | |||
| These settings are global (for your machine), so you only need to do this once. | These settings are global (for your machine), so you only need to do this once. | ||
| == Create the Project Folder == | == Create the Project Folder == | ||
| Line 278: | Line 281: | ||
| * for [http://mac.github.com Mac] | * for [http://mac.github.com Mac] | ||
| * for [http://windows.github.com Windows] | * for [http://windows.github.com Windows] | ||
| Drag your project folder onto the app. | Drag your project folder onto the app. | ||
| Line 285: | Line 288: | ||
| While we're still local, let's explore another really powerful git feature: | While we're still local, let's explore another really powerful git feature: | ||
| == Branching == | == Branching == | ||
| Line 305: | Line 307: | ||
| Create a new branch | Create a new branch | ||
|    git branch testing |    git branch -b testing | ||
| you can also add -v to see the latest commit: | you can also add -v to see the latest commit: | ||
| Line 390: | Line 392: | ||
| '''Remember that up until this point, we were using git locally. Now, let's create an online repository to work with others''' | '''Remember that up until this point, we were using git locally. Now, let's create an online repository to work with others''' | ||
| == Using Remote Git Servers == | == Using Remote Git Servers == | ||
| Line 433: | Line 433: | ||
| So, let's add the remote origin (btw, this will also work via ssh) | So, let's add the remote origin (btw, this will also work via ssh) | ||
|    git remote add origin ssh://myserver.com |    git remote add origin ssh://myserver.com | ||
| == Push Changes to the Server == | == Push Changes to the Server == | ||