emailconfirmed, nsInternRO, nsInternRW, Administrators
3,356
edits
(2 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 304: | 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 389: | 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 432: | 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 == |