hasen
hasen

Reputation: 166122

git without bash/cygwin

I'm on a vista laptop, trying out git for the first time.

I installed the msysgit version, and it installed a "git bash" shortcut on the desktop. When I run it, it seems to run in a cygwin kind of box, where C:\ is /c/

Is it safe to use git from the windows command line where /c/ is C:\? does that create any conflict with the way git expects the pathes to be like?

What about, if I init from the bash/cygwin console, then commit from the windows console? Does that create any trouble?

Upvotes: 4

Views: 3059

Answers (3)

gahooa
gahooa

Reputation: 137272

Note: Keep in mind that git does not track where the repository is at -- just references. In other words you can cleanly move an entire git directory (.git + working tree) and it still works fine.

It should work in either case assuming your environment variables allow you to run git from the windows command line.

Both point to the same actual directories (although referenced differently), and use the same executable to modify the repository.

Upvotes: 2

Gabe Moothart
Gabe Moothart

Reputation: 32072

When you install MSYS Git, it will give you 3 options related to system paths. Which one you choose will determine how you can use it. It sounds like you want the 3rd option, "Run Git and included tools from the windows command prompt". This will put all of the git-related binaries in the system path, allowing you to use git from a normal command prompt. Be aware that it also overrides a few built-in windows tools, as the warning in the installer says.

Upvotes: 2

Rayne
Rayne

Reputation: 32625

After installing msysgit, you should be able to right click on an empty folder and see options "Git GUI here" and "Git BASH here". If you click Git GUI here it will open a GUI. Have fun!

Upvotes: 0

Related Questions