Github和Git - 在win7中使用git终端需要什么?

时间:2015-07-12 14:24:15

标签: git github

我想与在私人服务器上使用git的团队合作。我需要从服务器推送和拉出什么?我得到了win7,我需要什么?我在githubgit处找到了下载。

1 个答案:

答案 0 :(得分:7)

我会推荐latest from git-for-windowswhich will replace old msysgit soon,并会包含a more recent bash):

  • 在任何地方解压缩PortableGit-2.4.5.1-4th-release-candidate-64-bit.7z.exe
  • C:\path\to\PortableGit-2.4.5.1-4th-release-candidate-64-bit\bin添加到您的%PATH%
  • 使用<PortableGit-2.4.5.1-4th-release-candidate-64-bit>\git-cmd.bat(常规CMD会话)或<PortableGit-2.4.5.1-4th-release-candidate-64-bit>\git-bash.bat(shell unix会话)
  • 型:

    git config --global user.name <yourUsername>
    git config --global user.email <yourEmail>
    git config --global core.autocrlf false
    

你很高兴 如果您有权访问该私人服务器,则可以将其克隆(ssh或https url)。