Skip to content
Snippets Groups Projects
Commit 4ee7d998 authored by Dennis Ahrens's avatar Dennis Ahrens
Browse files

Install git - not python :P

parent 8a25cfa0
Branches
No related tags found
No related merge requests found
......@@ -28,7 +28,7 @@ if(Is-Installed("just-install")) {
if(Is-Installed("git")) {
"git is already installed"
} else {
Start-Process -NoNewWindow just-install -Wait -ArgumentList 'python3'
Start-Process -NoNewWindow just-install -Wait -ArgumentList 'git'
}
"Make some sanity checks in the environment - verify python and git are located where we think they are..."
......
# bootstrap-git
Use this repository to bootstrap git on your windows box.
It also automatically creates a key pair that can be used to connect to a git server.
## Usage
Be careful, this executes code directly on your machine. You are expected to read the script before you execute it.
```powershell
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
* The script install [just-install](https://just-install.it/), if not present.
* 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`
* It also prints the public key on your console in the end.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment