Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
bootstrap-git
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
powershell
bootstrap-git
Commits
5179cf08
Commit
5179cf08
authored
6 years ago
by
Dennis Ahrens
Browse files
Options
Downloads
Patches
Plain Diff
A little bit more verbose and troubleshooting info
parent
4ee7d998
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Install.ps1
+3
-2
3 additions, 2 deletions
Install.ps1
README.md
+17
-5
17 additions, 5 deletions
README.md
with
20 additions
and
7 deletions
Install.ps1
+
3
−
2
View file @
5179cf08
...
@@ -56,11 +56,12 @@ if (!(Test-Path $sshKeyName) ) {
...
@@ -56,11 +56,12 @@ if (!(Test-Path $sshKeyName) ) {
}
}
if
(
!
(
Test-Path
$sshKeyName
)
)
{
if
(
!
(
Test-Path
$sshKeyName
)
)
{
"Key generation not successful"
"Key generation not successful. Try yourself to see whats wrong:"
"
$sshKeygenExe
-b 4096 -f
$sshKeyName
-N '' "
exit
exit
}
}
"You now need to tell gitlab
about this ssh public key and can proceed with what you want to install
"
"You now need to tell gitlab
(Dennis Ahrens or Artiom Lukyanchyk) about this ssh public key
"
""
""
cat
$sshPublicKey
cat
$sshPublicKey
""
""
This diff is collapsed.
Click to expand it.
README.md
+
17
−
5
View file @
5179cf08
...
@@ -2,6 +2,13 @@
...
@@ -2,6 +2,13 @@
Use this repository to bootstrap git on your windows box.
Use this repository to bootstrap git on your windows box.
## What it does in detail
*
install
[
just-install
](
https://just-install.it/
)
, if not present
*
afterwards it install git, if not present
*
creates an ssh keypair located in
`C:\hshgitlab\id_rsa`
and
`C:\hshgitlab\id_rsa.pub`
*
prints the public key on your console
## Usage
## Usage
Be careful, this executes code directly on your machine. You are expected to read the script before you execute it.
Be careful, this executes code directly on your machine. You are expected to read the script before you execute it.
...
@@ -10,10 +17,15 @@ Be careful, this executes code directly on your machine. You are expected to rea
...
@@ -10,10 +17,15 @@ Be careful, this executes code directly on your machine. You are expected to rea
Set-ExecutionPolicy
Bypass
-Scope
Process
-Force
;
iex
((
New-Object
System.Net.WebClient
)
.
DownloadString
(
'https://lab.it.hs-hannover.de/powershell/bootstrap-git/raw/master/Install.ps1'
))
Set-ExecutionPolicy
Bypass
-Scope
Process
-Force
;
iex
((
New-Object
System.Net.WebClient
)
.
DownloadString
(
'https://lab.it.hs-hannover.de/powershell/bootstrap-git/raw/master/Install.ps1'
))
```
```
## What it does in detail
## Troubleshouting
It might happen that you receive an error, because your OS is not willing to speak TLS1.2:
*
The script install
[
just-install
](
https://just-install.it/
)
, if not present.
`The request was aborted: Could not create SSL/TLS secure channel`
*
Afterwards it install git, if not present.
*
Finally it creates an ssh keypair located in
`C:\hshgitlab\id_rsa`
and
`C:\hshgitlab\id_rsa.pub`
In this case you need to teach your windows that it should use TLS 1.2 using this command:
*
It also prints the public key on your console in the end.
```
powershell
[
System.Net.ServicePointManager
]::
SecurityProtocol
=
[
System.Net.SecurityProtocolType
]::
Tls12
;
```
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment