How to reach some commands on Github for windows
Asked Answered
G

2

6

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.

Gastrin answered 25/8, 2012 at 9:47 Comment(0)
A
3

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.

Arboreous answered 8/4, 2013 at 20:12 Comment(2)
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'll enable you to enter command line commandsSoutine
@MarkCramer Interesting. I have included your comment in the answer for more visibility.Arboreous
O
1

Just download the http://code.google.com/p/msysgit/downloads and install it, you will have all git commands in your command line.

Orville answered 25/8, 2012 at 13:4 Comment(1)
Right. GitHub is not the same thing as Git.Vulcanology

© 2022 - 2024 — McMap. All rights reserved.