Professional Documents
Culture Documents
This guide is to walk through GitLab client installation on windows machine, setting up authentication method and it also
talks about getting familiar with GitLab web interface by creating an example project, uploading code files into servers,
accessing them on web UI, web editing etc.
Note: This document is version specific and supports the below specified versions only. Please cross check the
installer files against the version mentioned in this document and check with document owner if you are looking
for any other versions.
I.
Index:
1.
2.
3.
4.
5.
1.3.
1.3.3. Selecting additional Icon set: Select additional Icon for Quick Launch and Desktop and Click Next
1.3.6. Select Use (Tortoise)Plink as SSH binary for MsysGit and then Click Next:
Select this
Browseand
andSelect
Select TortoisePlink.exe
TortoisePlink.exe
Browse
1.3.7. Leave the default and Click Next, It will start the MsysGit installation and takes around 3Minutes
1.4.
1.4.1. Copy the below content which will be the Environment PATH Variable for Git and Tortoise
;C:\Git\bin;C:\Program Files\TortoiseGit\bin
1.4.2. Click on windows Start button, Right Click on Computer and select Properties
Right Click
Select Properties
Click here
1.4.5. Under System Variables, Click on the variable Path and then Click on Edit button.
Click on Path
Click on Edit button
1.4.6. Under Variable value row, move to the end of the text, Paste the copied content and then
Click OK
1.4.7. Click OK and then again OK, Close all other windows
1.5.
Type id_rsa
So now you are all set with the agent and git environment, we should be ready to work out a test script at this stage.
Let us create our first script and get that on to Git WEB-UI.
2.1.3. Enter the Title and copy the key from id_rsa.pub file in C:\Users\<User_Name>\.ssh\ (Open with
note pad and copy all of the content).
Select Notepad
Click OK
2.1.4. Back to WEB-UI, Paste the content into the Key text box and then save it by Clicking on Add Key button.
Can be your computer Name
2.2.
2.2.1.
Logon to the WEB-UI with the provided credentials and create a test project as shown below.
2.2.2.
Click on the
+ icon, enter project name as test, enter some description and Click on Create
Project
Click on
Immediately after creating your brand-new project, you should be seeing something very similar to this.
2.3.
2.3.1. Copy the two line code from the Git Global setup and run the same in a CMD on your workstation
We are all set to create a local repository and push the same to GitLab server which allows us to review, edit,
comment, create wiki and do more on the WEB-UI.
3. Creating a local repository, a test code file and syncing it with Git Server
3.1. Preparing the local repository
3.1.1. Go to any location on your computer and create a folder by some name, for now name it as test
Note: For isolation purpose, plan a directory structure and create project wise folders under it as E:\repo\<project>
and also use proper project name instead of test or example.
3.1.2. Adding the project test to Git repo list: Right Click on the test folder and select Git Create repository
here , Click OK and then again OK
Refresh the
directory to a
see a Tick
mark on the
project test
You could also see a .git folder inside the test project. It shows that a local repository is ready to be synced with the
test project we created on the server in Step (2.2) (Look at the Step (2.2) if you have not done yet)
3.2.
3.3.
Preparing Commit: Inside the test folder, Right Click on empty area and select Git Commit->master,
3.3.1.
3.3.2.
3.3.3.
3.3.4.
3.3.5.
3.4.
Pushing your files to the GitLab server: Click on Push, Select Push all branches and then Click Manage.
This will open up a new window which is TortoiseGit control pane.
Click Push
Click on Manage
3.5.
3.5.1. Expand Git available on left pane, Click on Remote, Enter Remote name, put GitLab server URL in the
URL text box
3.6.
3.6.1. Click on Network and on the right side, enter the SSH client path as shown below (i.e.
C:\Git\bin\ssh.exe). At the end, Click on Apply and then Click on OK
This will set the TortoiseGit to use ssh client from the Git installation as the default during the authentication
against the GitLab server.
Note: If you have a proxy in place for everything (SSH, Telnet, SFTP, HTTP), then please set it here.
3.7.
3.7.1. The Git Command Progress window shows the progress of the project and its contents are being
pushed on to the GitLab server. This depends on the size of the project.
At the end, you should see a resultant window very similar to the one below. Close the window to finish the Push
Refresh the Project directory and you could see that Blue exclamatory mark dissapeared and a Green tick mark
over the source code file indicating that the Git is insync with the local and server.
4.2.
Click on Files and then Click on available file to view its source code. You could also see all the available
options on the Right side of the page against that source code file.
2
1
Well done, I have got my first file helo.pl on to the GitLab WEB-UI.
Hope you will enjoye the GitLab. So please let me know your feedback.
Thanks.
-Girish KG (girish.kg@hp.com)
5. Help
5.1. Client Installation/config Help on Windows-7
5.1.1. Contact girish.kg@hp.com with details