Skip to content

Instantly share code, notes, and snippets.

View aclk's full-sized avatar
☄️
diu, diu, diu

aqing aclk

☄️
diu, diu, diu
View GitHub Profile
@aclk
aclk / git-clone.ps1
Last active August 7, 2021 08:21
setup work flow
function Unj-GitCloneAllBy($User, $Proxy = $null) {
(curl -Proxy $Proxy "https://api.github.com/users/$User/repos?page=1&per_page=100").Content
| ConvertFrom-Json
| %{ $_.clone_url }
# workaround git printing to stderr by @wekempf aka William Kempf
# https://github.com/dahlbyk/posh-git/issues/109#issuecomment-21638678
| %{ & git clone $_ 2>&1 }
| % { $_.ToString() }
}