2

WindowsPowerShellコマンドを使用できるようにしたい

Get-ChildItem -include .git  -Force -Recurse | ?{ $_.PSIsContainer -and $_.Attributes -match "Hidden"}

git status見つかったすべての「レコード」に対して実行し、テキストファイルに出力します。

このようにして、非同期の変更のレポートを作成できます。

これを行う方法はありますか?

4

1 に答える 1

2

最後に、このコマンドのエイリアスをプロファイルに設定します。

Get-ChildItem -include .git -Force -Recurse | ?{ $_.PSIsContainer -and $_.Attributes -match "Hidden"} | foreach-object {$a=Get-Location; cd $_.parent.fullname; Get-Location; git status; cd $a;}
于 2013-01-15T14:57:41.643 に答える