git-tutorial
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
git-tutorial [2012/12/29 23:43] – smilauer | git-tutorial [2017/10/31 17:21] – oofem git repo updated to github bp | ||
---|---|---|---|
Line 40: | Line 40: | ||
If you want to get a copy of an existing Git repository — for example, a project you’d like to contribute to — the command you need is git clone. | If you want to get a copy of an existing Git repository — for example, a project you’d like to contribute to — the command you need is git clone. | ||
- | $ git clone http://www.oofem.org/git/ | + | $ git clone https://github.com/oofem/ |
Line 85: | Line 85: | ||
==== Viewing the Commit History ==== | ==== Viewing the Commit History ==== | ||
- | You can show the history of commits in the current branch using gil log command | + | You can show the history of commits in the current branch using git log command |
git log | git log | ||
Line 133: | Line 133: | ||
If you already have oofem.git directory from a previous time, you can update '' | If you already have oofem.git directory from a previous time, you can update '' | ||
- | $ (git diff master origin/ | + | $ (git diff --name-only master origin/ |
$ git checkout master | $ git checkout master | ||
$ git pull --rebase | $ git pull --rebase |
git-tutorial.txt · Last modified: 2017/11/01 09:08 by bp