Difference between revisions of "User:Crutchy"
From SoylentNews
(→Git/GitHub) |
|||
Line 6: | Line 6: | ||
==Git/GitHub== | ==Git/GitHub== | ||
− | |||
− | |||
<pre> | <pre> | ||
− | $ git config --global user.name "crutchy" | + | $ git config --global user.name "crutchy-" |
$ git config --global user.email "" | $ git config --global user.email "" | ||
$ git config --global credential.helper cache | $ git config --global credential.helper cache | ||
$ git config --global credential.helper 'cache --timeout=3600' | $ git config --global credential.helper 'cache --timeout=3600' | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
$ git clone https://github.com/crutchy-/slashcode.git | $ git clone https://github.com/crutchy-/slashcode.git | ||
− | |||
</pre> | </pre> | ||
Line 42: | Line 20: | ||
<pre>$ git remote add upstream https://github.com/SoylentNews/slashcode.git</pre> | <pre>$ git remote add upstream https://github.com/SoylentNews/slashcode.git</pre> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
Fetch any new changes from the original repository: | Fetch any new changes from the original repository: | ||
Line 71: | Line 26: | ||
Merge any changes fetched into your working files: | Merge any changes fetched into your working files: | ||
<pre>$ git merge upstream/master</pre> | <pre>$ git merge upstream/master</pre> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Revision as of 19:49, 23 July 2014
I'm just a regular pleb from Australia. I'm not a member of the Soylent staff.
PHP/SQL/HTML/CSS and Delphi (Object Pascal) are my preferred languages.
Look out for me on Soylent IRC (#Soylent,##,#test)
Git/GitHub
$ git config --global user.name "crutchy-" $ git config --global user.email "" $ git config --global credential.helper cache $ git config --global credential.helper 'cache --timeout=3600' $ git clone https://github.com/crutchy-/slashcode.git
When a repository is cloned, it has a default remote called "origin" that points to your fork on GitHub, not the original repository it was forked from. To keep track of the original repository, you need to add another remote named "upstream"
$ git remote add upstream https://github.com/SoylentNews/slashcode.git
Fetch any new changes from the original repository:
$ git fetch upstream
Merge any changes fetched into your working files:
$ git merge upstream/master