最后活跃于 4 months ago

git.ps1 原始文件
1KEY_FILE="$HOME/.ssh/id_ed25519"
2ssh-keygen -t ed25519 -f $KEY_FILE -N ""
3
4git config --list --global
5
6git rm -r --cached path/to/file.ext
7
8Get-ChildItem -Recurse -Directory -Hidden -Filter .git |
9 ForEach-Object { & git --git-dir="$($_.FullName)" --work-tree="$(Split-Path $_.FullName -Parent)" pull origin master }
10
11git branch |
12 ForEach-Object { $_.Trim() } |
13 Where-Object {$_ -NotMatch "^\*"} |
14 ForEach-Object { git branch -d $_ }KEY_FILE="$HOME/.ssh/id_ed25519"
15ssh-keygen -t ed25519 -f $KEY_FILE -N ""
16
17git config --list --global
18
19git rm -r --cached path/to/file.ext
20
21Get-ChildItem -Recurse -Directory -Hidden -Filter .git |
22 ForEach-Object { & git --git-dir="$($_.FullName)" --work-tree="$(Split-Path $_.FullName -Parent)" pull origin master }
23
24git branch |
25 ForEach-Object { $_.Trim() } |
26 Where-Object {$_ -NotMatch "^\*"} |
27 ForEach-Object { git branch -d $_ }