Skip to content

Commit 195f787

Browse files
author
Rasmus Bækgaard
committed
Update README.md to include a cleanup script at the very end
1 parent b0dcb08 commit 195f787

1 file changed

Lines changed: 13 additions & 7 deletions

File tree

README.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
# GitSetup
2-
This repository will setup Git for shell warriors. It includes setup of Posh-git, P4Merge, and several shortcuts
2+
This repository will setup Git for shell warriors.
3+
It includes setup of Posh-git, P4Merge, and several shortcuts.
34

45
* Add a PowerShell profile, if you do not have one. This gives you the shortcut ``g`` for ``git``.
5-
* Tell PowerShell where Git is located, so the commands can be used
6+
* Tell PowerShell where Git is located, so the commands can be used.
67
* Override the ``~/.gitconfig`` file with a whole lot of new aliases, and set it up to default use P4Merge. Open ``~/.gitconfig`` in your favorite editor to see all of these.
7-
* Install a light version of P4Merge 2015.2
8-
* Install [Posh-git](https://github.com/dahlbyk/posh-git) for better overview of Git in PowerShell
9-
* Setup a proxy for Git, extracting the data from Internet Explorer (should there be any)
10-
* Setup an SSH-key, which is located under ``~/.ssh/id_rsa.pub`` (use to authorize you with TFS/GitHub/BitBucket/TeamCity/Jenkins/GitLab/...)
8+
* Install a light version of P4Merge 2015.2.
9+
* Install [Posh-git](https://github.com/dahlbyk/posh-git) for better overview of Git in PowerShell.
10+
* Setup a proxy for Git, extracting the data from Internet Explorer (should there be any).
11+
* Setup an SSH-key, which is located under ``~/.ssh/id_rsa.pub`` (use to authorize you with TFS/GitHub/BitBucket/TeamCity/Jenkins/GitLab/...).
1112

1213

1314
## Step 1 - Installing Git:
@@ -32,7 +33,7 @@ This repository will setup Git for shell warriors. It includes setup of Posh-git
3233

3334
## Step 2 - Running the script:
3435

35-
Open PowerShell in **Administrator mode**:
36+
* Open PowerShell in **Administrator mode**:
3637

3738
* Replace the first two lines with your own data:
3839

@@ -54,6 +55,11 @@ cd "$Folderpath/GitSetup-master"
5455
# Setup PowerShell for Git
5556
Set-ExecutionPolicy RemoteSigned -Scope Process -Confirm -Force
5657
./GitSetup $YourName $YourEmail
58+
59+
# Clean up .zip-file and extracted folder
60+
cd "../.."
61+
rm "$Folderpath.zip"
62+
rmdir $Folderpath -Recurse
5763
```
5864

5965

0 commit comments

Comments
 (0)