From 4ee7d998c50e9e4e137dca3053f8dd09dda42241 Mon Sep 17 00:00:00 2001 From: Dennis Ahrens <dennis.ahrens@hs-hannover.de> Date: Wed, 22 Aug 2018 14:22:25 +0200 Subject: [PATCH] Install git - not python :P --- Install.ps1 | 2 +- README.md | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/Install.ps1 b/Install.ps1 index 099c274..df22c3c 100644 --- a/Install.ps1 +++ b/Install.ps1 @@ -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..." diff --git a/README.md b/README.md index b22ed3e..c29e3db 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,19 @@ # 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. + -- GitLab