Here are instructions on how to set up your first Git workspace in CET Developer
- Start by clicking Add Git Workspace at the bottom of the Operator to bring up the Git Workspace Editor.
- If you wish to edit an already existing workspace, press the Edit button in the operator.
- The Workspace Editor is filled with selectable repositories that you have developer access to. With your first workspace, this will be empty, besides core and base code. The first time you open the Workspace Editor, it will not list any repos because you have not yet specified an access token. The access token is used to identify you when the GitLab server is called. Clicking the red link will bring up your web browser where you can log in to your GitLab account. (If you do not yet have a GitLab account, or don’t know your login credentials, please contact Developer Support).
- You should now find yourself on the Personal Access Tokens page on GitLab. Fill out a name for your token (any name is ok, for example "cetdev"), check all the checkboxes under Scopes and lastly click the button to create your personal access token.
- Click the button next to the generated access token to copy it to the Windows clipboard. Then paste it into the Private Token field in the Git Workspace Editor. Click Refresh from Server to log in and view a list of the repos that you have access to.
Your list should show the base-repo (where CET Designer core, Abstract and Utility Extensions are located) and any custom repos that you are a developer for.
We recommend that you click the Create Profile Repo button in order to create a repo where you can commit your profile code. Next, check the repos you want to include and click Save.
- Answer Yes on the question to get the files for the workspace.
Now you have set up your first Git workspace, and you can proceed to the following sections:
Unable to connect to port 22 (SSH Protocol)
If there is any trouble relating to being unable to pull from port 22 the dialog will report errors.
This might be because of the user's router settings are blocking port 22(SSH), which is the default port we use. In this case, we have to change to use a different port, namely using port 443(HTTPS/SSL). To do this, go to Setup in CET Developer, and then press the Git Settings button. Set UseHttpsForGitRepos to true: