Install git on windows and use it in cygwin
You have two options when install git:
- Install mysisgit https://code.google.com/p/msysgit/downloads/list
- Install git from cygwin
- Recommendation is to use option 1, because by that you always get the latest git version.
- After install mysisgit on your windows machine, you should add git_install_folder/bin/ to your path environment variable so that cygwin can find it.
- Add the following configuration settings from cygwin:
- git config --global core.askpass "git-gui–-askpass"
- git config --global credential.helper store
- git config --global core.eol lf
- git config --global core.autocrlf false
- git config --global core.filemode false // ignore file mode(chmod) change in git
评论
发表评论