mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Updated page access code (markdown)
@ -28,8 +28,8 @@ One can nevigate to required branch and download the snapshot as required. Howev
|
||||
* An alternative way to browse through selected repository (for files, branches, tags,...) is via Repository section as shown below.
|
||||

|
||||
|
||||
## Clone a repository
|
||||
|
||||
## Terminal mode (cloning)
|
||||
### Get a snapshot
|
||||
* Cloning provides an easy way to synchronize with latest developments via git commands. Address for cloning is available on right hand side of "Project->Details" slider of repository as shown.
|
||||
|
||||

|
||||
@ -52,3 +52,21 @@ e.g. to clone 'develop' branch from repository into OpenFOAM-plus.develop via SS
|
||||
git clone -b develop git@develop.openfoam.com:Development/OpenFOAM-plus.git OpenFOAM-plus.develop
|
||||
```
|
||||
|
||||
* Since [OpenFOAM-v1712](https://www.openfoam.com/releases/openfoam-v1712) community contributions may be included using the git submodule system. To initialise the submodules located in the [$WM_PROJECT_DIR/modules](https://develop.openfoam.com/Development/OpenFOAM-plus/tree/master/modules) directory:
|
||||
```
|
||||
git submodule init
|
||||
```
|
||||
|
||||
### Update existing snapshot
|
||||
|
||||
* The repositories are updated regularly to include bug fixes and new features. Retrieve the updates using:
|
||||
```
|
||||
git pull
|
||||
```
|
||||
* To update the additional community repositories, issue the command:
|
||||
```
|
||||
git submodule update
|
||||
```
|
||||
* Note that, occasionally if there are merge conflicts during the pull, you might have to resolve them manually or reset the HEAD and pull a fresh.
|
||||
* Also, one might have to 'force' initialize/ update submodules, if required.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user