我想通过 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:
在那里,你可以输入任何你想要的 git 命令。
关于git - 如何访问 Github for windows 上的一些命令,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12120905/