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/16 22:14] – smilauer | git-tutorial [2014/01/23 18:46] – nitramkaroh | ||
---|---|---|---|
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 118: | Line 118: | ||
- | ====== Contributing to OOFEM - Practical | + | ====== Contributing to OOFEM - Practical |
Contributing to oofem project is different. Typically, you don’t have the permissions to directly update branches on the project reference repository and you have to pass your contribution(s) to the maintainers in some way. In OOFEM, these people (' | Contributing to oofem project is different. Typically, you don’t have the permissions to directly update branches on the project reference repository and you have to pass your contribution(s) to the maintainers in some way. In OOFEM, these people (' | ||
Line 126: | Line 126: | ||
Clone reference repository from remote server. This creates only '' | Clone reference repository from remote server. This creates only '' | ||
- | |||
$ git clone http:// | $ git clone http:// | ||
$ cd oofem.git | $ cd oofem.git | ||
Note: when a repository is cloned, git automatically creates a master branch that tracks origin/ | Note: when a repository is cloned, git automatically creates a master branch that tracks origin/ | ||
+ | |||
+ | If you already have oofem.git directory from a previous time, you can update '' | ||
+ | |||
+ | $ (git diff --name-only master origin/ | ||
+ | $ git checkout master | ||
+ | $ git pull --rebase | ||
Normally, we do not want to modify '' | Normally, we do not want to modify '' |
git-tutorial.txt · Last modified: 2017/11/01 09:08 by bp