Skip to content

Instantly share code, notes, and snippets.

View nh43de's full-sized avatar
🏠
Working from home

Nathan Hollis nh43de

🏠
Working from home
View GitHub Profile
@nh43de
nh43de / gitSync.ps1
Created March 5, 2020 15:42
Update all local git repos in a directory using Powershell
Get-ChildItem -Directory | ForEach-Object {
echo $_.name
cd $_
git fetch --all
git pull
cd ../
}
@nh43de
nh43de / CloneAllRepos.ps1
Last active July 9, 2024 13:26
Clone all repos from Azure DevOps using Powershell
<#
--credits to https://blog.rsuter.com/script-to-clone-all-git-repositories-from-your-vsts-collection/
Create a file called "CloneAllRepos.config" in the same directory with
[General]
Url=??
Username=??
Password=??
@nh43de
nh43de / clean.bat
Created September 22, 2021 15:54
Clean all local temp files, including Visual Studio / JetBrains
# cleans all temp files when Visual Studio / others starts swelling and going slow
rd /Q /S "%localappdata%\temp"
rd /Q /S "%localappdata%\JetBrainsCache"