Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
2.2k views
in Technique[技术] by (71.8m points)

git - How to reach some commands on Github for windows

I want to pass github for windows because of easy usage and its user friendly design. But I have to know some codes which i used classical version of Github.

For example how to reach these commands?

"gitk -all"

"git reset --hard HEAD"

"git diff"

Thanks for your help.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Mark Cramer adds in the comments (July 2014):

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.


Original answer (April 2013):

Actually, you don't need to download a separate msysgit if you are using GitHub for Windows: it does come with its own msysgit installation within GitHub for Windows (a Portable_Git, as I mentioned here).

You can simply launch a command prompt (Powershell) session, which will use that git.exe from the internal nested "PortableGit":

Commad prompt for GitHub for Windows

In there, you can type any git command you want.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...