... | ... | @@ -8,11 +8,16 @@ to access other internal repositories and take advantage of advanced |
|
|
features (such as reporting issues), users must create an account.
|
|
|
|
|
|
The main repositories:
|
|
|
- The [OpenFOAM repository](https://develop.openfoam.com/Development/OpenFOAM-plus/)
|
|
|
with [issue tracker](https://develop.openfoam.com/Development/OpenFOAM-plus/issues)
|
|
|
- The [OpenFOAM repository](https://develop.openfoam.com/Development/openfoam/)
|
|
|
with [issue tracker](https://develop.openfoam.com/Development/openfoam/issues)
|
|
|
- The [ThirdParty repository](https://develop.openfoam.com/Development/ThirdParty-plus/)
|
|
|
with [issue tracker](https://develop.openfoam.com/Development/ThirdParty-plus/issues)
|
|
|
|
|
|
If you have been using the [older OpenFOAM git repository][old-foam-repo]
|
|
|
and have code you need to migrate, you should see the [repository
|
|
|
migration](page-repository-migration) information.
|
|
|
|
|
|
|
|
|
## Organization of git branches
|
|
|
|
|
|
The OpenFOAM repository follows a
|
... | ... | @@ -64,23 +69,23 @@ _develop_, there is additionally is guarantee of continuity. |
|
|
|
|
|
- Clone the default _master_ branch via HTTPS using
|
|
|
```
|
|
|
git clone https://develop.openfoam.com/Development/OpenFOAM-plus.git
|
|
|
git clone https://develop.openfoam.com/Development/openfoam.git
|
|
|
```
|
|
|
|
|
|
- **Optional:** You may specify a target branch directly using
|
|
|
```
|
|
|
git clone -b <branch name> <address of git> <name of resulting directory>
|
|
|
```
|
|
|
e.g. to clone the _develop_ branch to your local OpenFOAM-plus.develop directory via HTTPS:
|
|
|
e.g. to clone the _develop_ branch to your local openfoam-com.develop directory via HTTPS:
|
|
|
```
|
|
|
git clone -b develop https://develop.openfoam.com/Development/OpenFOAM-plus.git OpenFOAM-plus.develop
|
|
|
git clone -b develop https://develop.openfoam.com/Development/openfoam.git openfoam-com.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:
|
|
|
- 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/tree/master/modules) directory:
|
|
|
```
|
|
|
git submodule init
|
|
|
```
|
|
|
The respective [Modules Readme](https://develop.openfoam.com/Development/OpenFOAM-plus/blob/develop/modules/README.md)
|
|
|
The respective [Modules Readme](https://develop.openfoam.com/Development/openfoam/blob/develop/modules/README.md)
|
|
|
contains more information.
|
|
|
|
|
|
|
... | ... | @@ -89,16 +94,16 @@ git submodule init |
|
|
- Shallow cloning is a clone of the last repository state without its
|
|
|
entire history. This makes for a smaller repository and faster cloning.
|
|
|
```
|
|
|
git clone --depth=1 https://develop.openfoam.com/Development/OpenFOAM-plus.git
|
|
|
git clone --depth=1 https://develop.openfoam.com/Development/openfoam.git
|
|
|
|
|
|
cd OpenFOAM-plus
|
|
|
cd openfoam
|
|
|
git submodule init && git submodule update --depth=1
|
|
|
```
|
|
|
|
|
|
If you want more than just the very last commit, adjust the clone
|
|
|
depth accordingly. For example,
|
|
|
```
|
|
|
git clone --depth=8 https://develop.openfoam.com/Development/OpenFOAM-plus.git
|
|
|
git clone --depth=8 https://develop.openfoam.com/Development/openfoam.git
|
|
|
```
|
|
|
|
|
|
|
... | ... | @@ -132,3 +137,10 @@ numbered in the snapshot to add a key to your profile. You may add |
|
|
multiple SSH keys and distinguish them with proper title.
|
|
|
|
|
|
![GitLab Add SSH key](images/KB-GL-ADV-AddSSHKey.png)
|
|
|
|
|
|
|
|
|
[foam-repo]: https://develop.openfoam.com/Development/openfoam/
|
|
|
[master]: https://develop.openfoam.com/Development/openfoam/tree/master
|
|
|
[develop]: https://develop.openfoam.com/Development/openfoam/tree/develop
|
|
|
|
|
|
[old-foam-repo]: https://develop.openfoam.com/Development/OpenFOAM-plus/ |