git related improvements and implementations

+ Get-GitRepo - Clone or update a repo, with tag support
+ Get-GitHubReleaseTag - Grab tag from latest release page
+ Refresh-GitRepo - Stage all possible changes, discarding any
previously stageds changes
= GitHub repo is now git repo - as some code isn't GitHub specific
+ cat Alias for Get-Content
= Get-PossiblArguments improvement
= Invoke-WebDownload fix
= dcedit fixing bad argument processing
This commit is contained in:
lksz 2021-04-04 14:42:29 -04:00
parent aa44d120e4
commit 8a93a0f123
11 changed files with 85 additions and 11 deletions

7
git/Refresh-GitRepo.ps1 Normal file
View file

@ -0,0 +1,7 @@
$local:workTree = git worktree list --porcelain | Select-String worktree | ForEach-Object { $_ -split 'worktree ' } | Where-Object { $_ }
Push-Location $workTree
$null = git reset HEAD
$null = git rm --cached -r .
$null = git add .
git status
Pop-Location