windows - 如何使用 Powershell 执行查找命令

标签 windows git powershell

我正在学习 Git 内部知识 https://git-scm.com/book/en/v1/Git-Internals-Git-Objects

当我尝试在 Windows 上执行此命令时(使用 cmder 更好的控制台 http://cmder.net/)

find .git/objects

我得到一个错误

enter image description here

我应该怎么做?

最佳答案

find.exe 在 Windows 中等同于 linux 中的 find

PowerShell 中 find [startpath] 的等价物是:

Get-ChildItem [startpath] -Name

cmd.exe 中,它将是:

dir /B [startpath]

关于windows - 如何使用 Powershell 执行查找命令,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37639919/

相关文章:

带配额的机器上的 git gc

powershell - 在 Powershell 中找不到类型 [System.Management.Automation.IValidateSetValuesGenerator] 错误

android - 无法从git导入android项目

c++ - OpenCL 编译器异常情况

android - adb shell 说没有找到设备,但是 adb -s <serialno> shell 工作

windows - 最上面的两个窗口。这表明?

git - 如何查看Intellij执行的git命令

.net - Powershell-将COM对象类型转换为字符串

powershell - 在PowerShell中捕获错误并处理被阻止的文件

java - 更改 Java 时区(不适用于应用程序,整个服务器)