git clone is a Git command line utility which is used to target an existing repository and create a clone, or copy of the target repository.
Before you start to use git, make sure you have access rights to your companies repository.
On the server folder user must run following command to initialise git repository:
Code Block |
---|
git clone https://server_address:port/repository/location git |
This will create a folder git with the code of the needed branch in it. You can then create symbolic links from HansaWorld server to these specific subfolders of halcust etc.
To make sure you are using correct branch, type:
Code Block |
---|
git branch |
It will show currently selected branch with *
To switch to develop branch use:
Code Block |
---|
git checkout develop |
To refresh code later on user need to run command:
Code Block |
---|
git pull |
Page Properties | ||
---|---|---|
| ||
|