git - 如何访问 Github for windows 上的一些命令

标签 git github github-for-windows

我想通过 github for windows 因为易于使用和用户友好的设计。 但是我必须知道一些我使用 Github 经典版本的代码。

例如如何到达这些命令?

“gitk -all”

“git reset --hard HEAD”

“比较差异”

感谢您的帮助。

最佳答案

Mark Cramer添加 in the comments (2014 年 7 月):

With GitHub for Windows 2.0 the drop-down menu has changed slightly.
Select the repository you wish to work with (on the left) and then from then "Open in Git Shell" from the drop-down and you'll get a window that will enable you to enter command line commands.


原始答案(2013 年 4 月):

实际上,如果您使用的是 Windows 版 GitHub,则无需下载单独的 msysgit:它在 GitHub for Windows 中安装了自己的 msysgit(一个 Portable_Git,as I mentioned here)。

您可以简单地启动命令提示符 (Powershell) session ,它将使用来自内部嵌套“PortableGit”的 git.exe:

Commad prompt for GitHub for Windows

在那里,你可以输入任何你想要的 git 命令。

关于git - 如何访问 Github for windows 上的一些命令,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12120905/

相关文章:

git - 尝试使用 powershell 提交到 GitHub 导致错误 "fatal: unable to access ' Microsoft.PowerShell.Core\FileSystem"

git - 如何撤消我的 git 工作副本中的错误权限?我应该再克隆一次吗?

git - GitHub for Windows 可以与 GitLab 一起使用吗?

git - 在 Git 中, "remotes/origin/HEAD"和 "remotes/origin/master"有什么区别

在 github Enterprise Organization Repos 中搜索字符串匹配项

git - 使用 NPM 打包 fork Git 存储库的 BUILT 版本的正确方法是什么?

xcode - 添加 pod 文件并推送。如何撤消?如何在 Xcode 和 github 中使用 gitignore?

GitHub : merging from master back into feature branch

Git 从特定分支上的特定推送提交更改代码

git - 如何在不下载整个文件的情况下从 GitHub API 获取 "sha"参数?