This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 0. Requires steamcmd. Download from https://developer.valvesoftware.com/wiki/SteamCMD. Put it in your steam directory (the one with steam.exe) | |
# 1. Save this script by right-click on Raw button and choose "Save link as..." | |
# 2. Start powershell : right click "Start" then choose "Run..." & type : powershell | |
# 3. Run script type : Start-Process powershell -Verb RunAs -ArgumentList "-ExecutionPolicy Unrestricted -NoExit -file `"$Home\Downloads\SteamShortcutCreator.ps1`""; exit | |
# 4. Give permission in pop-up | |
[Console]::OutputEncoding = [System.Text.Encoding]::UTF8 | |
$steamDir = if (Test-Path "C:\Program Files (x86)\Steam\steam.exe") { "C:\Program Files (x86)\Steam" } | |
elseif ($args[0] -and (Test-Path "$($args[0])\steam.exe")) { $args[0] } | |
elseif (Test-Path "$PSScriptRoot\steam.exe") { $PSScriptRoot } | |
elseif (Test-Path ".\steam.exe") { "." } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Remove the history from | |
rm -rf .git | |
-- recreate the repos from the current content only | |
git init | |
git add . | |
git commit -m "Initial commit" | |
-- push to the github remote repos ensuring you overwrite history | |
git remote add origin [email protected]:<YOUR ACCOUNT>/<YOUR REPOS>.git |