Git在windows下的安装和使用GIT@OSC

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/boonya/article/details/50516079

       Git是一个版本控制工具Github是一个用git做版本控制的项目托管平台。Git和GitHub一直以为是两个差不多的东西,但是具体是哪些差异还真没去了解过,现在Git也托管到了GitHub,都怪自己不求甚解以致有此一说。我有GitHub的账号但是提交代码到远程服务器总是提示验证不通过,从OSC中注册GIT@OSC才发现之前通过Eclipse生成的RSA加密方式应该是不对的,这篇文章先从Git入手,稍后会将GitHub的SSHkey进行研究说明。

1.下载Git

http://git-scm.com/downloads

2.Git托管到GitHub证据

看过这个界面的都知道是GitHub项目管理界面:



3.Git安装

采用默认安装,直接点击下一步直到完成。

4.配置环境变量

在path变量中编辑新增如下变量:

;C:\Program Files\Git\bin;C:\Program Files\Git\mingw64\libexec\git-core

添加完成后,测试git是否可用,cmd进入命令窗口操作,如看到如下所示信息说明Git配置成功。



4.Git@OSC操作手册


安装设置 git

下载最新版本的git

http://git-scm.com/downloads

当你安装完成git的时候,你需要简单的配置一下,打开终端:

用户名

第一步,你需要告诉git你的名字,这个名字会出现在你的提交记录中。

git config --global user.name "你的名字"

Email

然后是你的Email,同样,这个Email也会出现在你的提交记录中,请尽量保持此Email和您的Git@OSC的注册Email一致。

git config --global user.email "你的Email"

Clone 和 Push

Clone 项目

git clone http://git.oschina.net/xxxxxx/xxxxxx.git

创建特性分支

git checkout -b $feature_name

写代码,提交变更

git commit -am "My feature is ready"

将你的提交推送到 Git@OSC

git push origin $feature_name

在提交页面你可以查看你的变更,例如:

http://git.oschina.net/oschina/git-osc/commit/f3dd1c5bae48fa4244e2595a39e750e5606dd9be

创建一个 pull request

你可以fork任意的公开项目,当你修改了你fork的项目,你可以向源项目提交pull request。项目的作者在审阅过代码后可以决定是否将此变更应用到源项目。

在GIT@OSC上使用SVN

使用教程已经整理在这里


SSH Keys


SSH key 可以让你在你的电脑和 Git @ OSC 之间建立安全的加密连接。

你可以按如下命令来生成sshkey

ssh-keygen -t rsa -C "xxxxx@xxxxx.com"# Creates a new ssh key using the provided email
# Generating public/private rsa key pair...

查看你的public key,并把他添加到 Git @ OSC http://git.oschina.net/keys

cat ~/.ssh/id_rsa.pub
# ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6eNtGpNGwstc....

添加后,在终端(Terminal)中输入

ssh -T git@git.oschina.net

若返回

Welcome to Git@OSC, yourname! 

则证明添加成功。


关于权限


访客

  • 创建issue
  • 评论
  • Clone 和 Pull 项目
  • 打包下载代码
  • Fork 项目
  • 创建 pull request

报告者

  • 继承访客的权限
  • 私有项目:不能查看代码
  • 私有项目:不能下载代码

观察者

  • 继承报告者权限
  • 创建wiki
  • 打包下载代码
  • 不能push代码

开发者

  • 创建 issue
  • 评论
  • Clone 和 Pull 项目
  • 打包下载代码
  • 创建 pull request
  • 创建分支
  • 推送分支
  • 删除分支
  • 创建标签(里程碑)
  • 创建 wiki

管理员

  • 创建 issue
  • 评论
  • Clone 和 Pull 项目
  • 打包下载代码
  • 创建 pull request
  • 创建分支
  • 推送分支
  • 删除分支
  • 创建标签(里程碑)
  • 创建 wiki
  • 添加项目成员
  • 强制推送分支
  • 编辑项目属性

项目组管理员

  • 编辑项目组属性
  • 增加成员
  • 添加/删除项目
  • 设置项目组管理员
  • 删除项目组
  • 更改成员项目权限

Git @ OSC Flavored Markdown


Git @ OSC 的markdown基于原markdown做了一下扩展,具体使用如下。

You can use GFM in:

  • 提交消息
  • 评论
  • issues
  • pull requests
  • 里程碑
  • wiki 页面

跟传统的Markdown的区别

URL 自动链接

插入的URL不需要做特殊处理,会自动变成链接。

Emoji表情

支持Emoji表情,参考:Emoji cheat sheet

插入代码片段

可以向如下这种方式插入代码片段,可以在标记后面指定编程语言,如果没有指定语言,编译器会尝试自动识别。

```ruby
require 'redcarpet'
markdown = Redcarpet.new("Hello World!")
puts markdown.to_html
```

将会变成

require 'redcarpet'
markdown = Redcarpet.new("Hello World!")
puts markdown.to_html

特殊的 Git@OSC 引用。

GFM 可以识别一些特殊的标记,并且支持自动补全,例如:

  • #123 (Issue)
  • !123 (Pull Request)
  • 1234567 (提交)
  • :icon: (emoji 表情)

如何导入外部的Git仓库?

因为一些原因暂没有开放一键导入功能。
有需求的可以先按照如下步骤导入其它地方的git仓库(以 github 上的 impress.js 为例):

1. 从原始地址 clone 一份 bare 仓库:

git clone --bare  https://github.com/bartaz/impress.js.git

2. 在 GIT@OSC 上 创建一个项目

3. 以 mirror 的方式把刚才 clone 的项目 push 到 GIT@OSC 上: (如果提示输入 git 用户密码,请到http://git.oschina.net/keys 添加 SSH Key)

cd impress.js.git
git push --mirror git@git.oschina.net:username/impress-js.git

这种方式的好处是:可以完整地保留原项目的所有 branch 和 tag 信息。
提示:首次push内容量较大,推荐采用ssh方式push,传输更快,更稳定,如果项目较小,也可以采用http方式push。

更多导入办法,请点击这里

项目组的使用

项目组可以使用户更加方便的添加用户到项目中

1. 创建项目组:http://git.oschina.net/teams/new

2. 添加用户:可以设置两种权限,一种是用户默认在项目中的权限,一种是项目组管理权限

3. 指派到项目:如果选择开发者,那么将会按照用户在项目组中的默认权限为项目添加;如果选择管理员,那么项目组中的所有成员将会成为项目的管理员

4. 撤销项目:撤销项目将会把在项目属于项目组中的成员移除,如果成员同样存在于此项目别的项目组中,那么将会更新为别的项目组中的相应的项目权限。

Tips

  • 项目组只有项目组的成员可以访问

  • 项目组的名称是全站唯一的

  • 一个用户存在于两个项目组a,b中,在a中的项目权限是管理员,在b中的项目权限是开发者,如果项目组a,b同时指派到项目pro,那么将项目组a从pro中移除之后,此用户在pro中的权限将会从管理员降为开发者。

README 规则

1. git@osc README 文件支持多种文件格式以及命名规则。

例如: README, README.md, README.org...

或者: README_zh.md, README_en.md...

2. 若有多个README文件,则优先显示文件名包含'_zh','_cn'等中文标注的README文件。

例如同一目录包含两个README文件:README_en.md README_zh.md

则显示README为: README_zh.md

改写历史,去除大文件

git filter-branch --tree-filter 'rm -f path/to/large/files' --tag-name-filter cat -- --all
git push origin --tags --force
git push origin --all --force

详细参见:这里

From:https://git.oschina.net/oschina/git-osc/wikis/%E5%B8%AE%E5%8A%A9#ssh-keys

Git for Windows v2.7.0 Release Notes

Latest update: January 5th 2016

Introduction

These release notes describe issues specific to the Git for Windows release. The release notes covering the history of the core git commands can be foundin the Git project.

See http://git-scm.com/ for further details about Git including ports to other operating systems. Git for Windows is hosted athttps://git-for-windows.github.io/.

Known issues

  • Special permissions (and Windows Vista or later) are required when cloning repositories with symbolic links, therefore support for symbolic links is disabled by default. Usegit clone -c core.symlinks=true <URL> to enable it, see detailshere.
  • If configured to use Plink, you will have to connect with putty first and accept the host key.
  • Some console programs interact correctly with MinTTY only when called throughwinpty (e.g. the Python console needs to be started aswinpty python instead of justpython).
  • cURL uses $HOME/_netrc instead of$HOME/.netrc.
  • If you specify command-line options starting with a slash, POSIX-to-Windows path conversion will kick in converting e.g. "/usr/bin/bash.exe" to "C:\Program Files\Git\usr\bin\bash.exe". When that is not desired -- e.g. "--upload-pack=/opt/git/bin/git-upload-pack" or "-L/regex/" -- you need to set the environment variable MSYS_NO_PATHCONV temporarily, like so:

    MSYS_NO_PATHCONV=1 git blame -L/pathconv/ msys2_path_conv.cc

    Alternatively, you can double the first slash to avoid POSIX-to-Windows path conversion.

  • Git for Windows will not allow commits containing DOS-style truncated 8.3-format filenames ending with a tilde and digit, such asmydocu~1.txt. A workaround is to callgit config core.protectNTFS false, which is not advised. Instead, add a rule to .gitignore to ignore the file(s), or rename the file(s).
  • Many Windows programs (including the Windows Explorer) have problems with directory trees nested so deeply that the absolute path is longer than 260 characters. Therefore, Git for Windows refuses to check out such files by default. You can overrule this default by setting core.longPaths, e.g. git clone -c core.longPaths=true ....
  • Some commands are not yet supported on Windows and excluded from the installation.
  • As Git for Windows is shipped without Python support, all Git commands requiring Python are not yet supported; e.g.git p4.
  • The Quick Launch icon will only be installed for the user running setup (typically the Administrator). This is a technical restriction and will not change.

Should you encounter other problems, please search the bug tracker and the mailing list, chances are that the problem was reported already. If it has not been reported, please followour bug reporting guidelines and report the bug.

Licenses

Git is licensed under the GNU Public License version 2.

Git for Windows also contains Embedded CAcert Root Certificates. For more information please go tohttps://www.cacert.org/policy/RootDistributionLicense.php.

This package contains software from a number of other projects including Bash, zlib, curl, msmtp, tcl/tk, perl, MSys2 and a number of libraries and utilities from the GNU project, licensed under the GNU Public License. Likewise, it contains Perl which is dual licensed under the GNU Public License and the Artistic License.

Changes since Git for Windows v2.6.4 (December 14th 2015)

New Features

Bug Fixes

Changes since Git for Windows v2.6.3 (November 10th 2015)

New Features

  • Comes with Git v2.6.4.
  • Also available as .tar.bz2 packages (you need an MSys2/Cygwin-compatible unpacker to recreate the symbolic links correctly).

Bug Fixes

Changes since Git for Windows v2.6.2 (October 19th 2015)

New Features

Bug Fixes

Changes since Git for Windows v2.6.1 (October 5th 2015)

New Features

Bug Fixes

Changes since Git-2.6.0 (September 29th 2015)

New Features

Bug Fixes

Changes since Git-2.5.3 (September 18th 2015)

New Features

Bug Fixes

Changes since Git-2.5.2(2) (September 13th 2015)

New Features

Bug fixes

Changes since Git-2.5.2 (September 10th 2015)

Bug fixes

Changes since Git-2.5.1 (August 31th 2015)

New Features

Bug fixes

Changes since Git-2.5.0 (August 18th 2015)

New Features

  • Comes with Git 2.5.1

Bug fixes

Changes since Git-2.4.6 (July 18th 2015)

New Features

Bug fixes

Changes since Git-2.4.5 (June 29th 2015)

New Features

  • Comes with Git 2.4.6

Bug fixes

Changes since Git-2.4.4 (June 20th 2015)

New Features

  • Comes with Git 2.4.5

Bug fixes

Changes since Git-2.4.3 (June 12th 2015)

New Features

  • Comes with Git 2.4.4
  • The POSIX-to-Windows path mangling can now be turned off by setting the MSYS_NO_PATHCONV environment variable. This even works for individual command lines:MSYS_NO_PATHCONV=1 cmd /c dir /x will list the files in the current directory along with their 8.3 versions.

Bug fixes

Changes since Git-2.4.2 (May 27th 2015)

New Features

  • Comes with Git 2.4.3

Bug fixes

  • We includediff.exe just as it was the case in Git for Windows 1.x
  • The certificates for accessing remote repositories via HTTPS are found on XP again.
  • clear.exe and the cursor keys in vi work again when Git Bash is run in Windows' default console window ("ConHost").
  • The ACLs of the user's temporary directory are no longer modified when mounting/tmp/ (https://github.com/git-for-windows/git/issues/190).
  • Git Bash Here works even from the context menu of the empty area in Windows Explorer's view of C:\, D:\, etc (https://github.com/git-for-windows/git/issues/176).

Changes since Git-2.4.1 (May 14th 2015)

New Features

Bug fixes

Changes since Git-2.4.0(2) (May 7th 2015)

New Features

  • Comes with Git 2.4.1

Bug fixes

Changes since Git-2.4.0 (May 5th 2015)

Bug fixes

  • The .sh file association was fixed
  • The installer will now remove files from a previous Git for Windows versions, particularly important for 32-bit -> 64-bit upgrades

New Features

  • The installer now offers the choice between opening the Git Bash in a MinTTY (default) or a regular Windows console window (Git for Windows 1.x' setting).

Changes since Git-2.3.7-preview20150429

New Features

  • Comes with Git 2.4.0
  • Git for Windows now installs its configuration into a Windows-wide location: %PROGRAMDATA%\Git\config (which will be shared by libgit2-based applications with the next libgit2 version)

Bug fixes

  • Fixed a regression where Git Bash would not start properly on Windows XP
  • Tab completion works like on Linux and MacOSX (double-Tab required to show ambiguous completions)
  • In 32-bit setups, all the MSys2 .dll's address ranges are adjusted ("auto-rebased") as part of the installation process
  • The post-install scripts of MSys2 are now executed as part of the installation process, too
  • All files that are part of the installation will now be registered so they are deleted upon uninstall

Changes since Git-2.3.6-preview20150425

New Features

  • Comes with Git 2.3.7

Bug fix

  • A flawed "fix" that ignores submodules during rebases was dropped
  • The home directory can be overridden using the $HOME environment variable again

Changes since Git-2.3.5-preview20150402

New Features

  • Comes with Git 2.3.6

Bug fixes

  • Fixed encoding issues in Git Bash and keept the TMP environment variable intact.
  • Downgraded the nettle packages due to an MSYS2 issue
  • A couple of fixes to the Windows-specific Git wrapper
  • Git wrapper now refuses to use $HOMEDRIVE$HOMEPATH if it points to a non-existing directory (this can happen if it points to a network drive that just so happens to be Disconnected Right Now).
  • Much smoother interaction with the mintty terminal emulator
  • Respects the newly introduced Windows-wide %PROGRAMDATA%\Git\config configuration

Changes since Git-1.9.5-preview20150402

New Features

  • Comes with Git 2.3.5 plus Windows-specific patches.
  • First release based on MSys2.
  • Support for 64-bit!

Backwards-incompatible changes

  • The development environment changed completely from the previous version (maybe introducing some regressions).
  • No longer ships with Git Cheetah (because there are better-maintained Explorer extensions out there).

Changes since Git-1.9.5-preview20141217

New Features

  • Comes with Git 1.9.5 plus Windows-specific patches.
  • Make vimdiff usable with git mergetool.

Security Updates

  • Mingw-openssl to 0.9.8zf and msys-openssl to 1.0.1m
  • Bash to 3.1.23(6)
  • Curl to 7.41.0

Bugfixes

  • ssh-agent: only ask for password if not already loaded
  • Reenable perl debugging ("perl -de 1" possible again)
  • Set icon background color for Windows 8 tiles
  • poll: honor the timeout on Win32
  • For git.exe alone, use the same HOME directory fallback mechanism as/etc/profile

Changes since Git-1.9.4-preview20140929

New Features

  • Comes with Git 1.9.5 plus Windows-specific patches.

Bugfixes

  • Safeguards against bogus file names on NTFS (CVE-2014-9390).

Changes since Git-1.9.4-preview20140815

New Features

  • Comes with Git 1.9.4 plus Windows-specific patches.

Bugfixes

  • Update bash to patchlevel 3.1.20(4) (msysgit PR#254, msysgit issue #253).
  • Fixes CVE-2014-6271, CVE-2014-7169, CVE-2014-7186 and CVE-2014-7187.
  • gitk.cmd now works when paths contain the ampersand (&) symbol (msysgit PR #252)
  • Default to automatically close and restart applications in silent mode installation type
  • git svn is now usable again (regression in previous update, msysgit PR#245)

Changes since Git-1.9.4-preview20140611

New Features

  • Comes with Git 1.9.4 plus Windows-specific patches
  • Add vimtutor (msysgit PR #220)
  • Update OpenSSH to 6.6.1p1 and its OpenSSL to 1.0.1i (msysgit PR #221, #223, #224, #226, #229, #234, #236)
  • Update mingw OpenSSL to 0.9.8zb (msysgit PR #241, #242)

Bugfixes

  • Checkout problem with directories exceeding MAX_PATH (PR #212, msysgit #227)
  • Backport a webdav fix from junio/maint (d9037e http-push.c: make CURLOPT_IOCTLDATA a usable pointer, PR #230)

Regressions

  • git svn is/might be broken. Fixes welcome.

Changes since Git-1.9.2-preview20140411

New Features

  • Comes with Git 1.9.4 plus Windows-specific patches.

Bugfixes

  • Upgrade openssl to 0.9.8za (msysgit PR #212)
  • Config option to disable side-band-64k for transport (#101)
  • Make git-http-backend, git-http-push, git-http-fetch available again (#174)

Changes since Git-1.9.0-preview20140217

New Features

  • Comes with Git 1.9.2 plus Windows-specific patches.
  • Custom installer settings can be saved and loaded, for unsupervised installation on batches of machines (msysGit PR #168).
  • Comes with VIM 7.4 (msysGit PR #170).
  • Comes with ZLib 1.2.8.
  • Comes with xargs 4.4.2.

Bugfixes

  • Work around stack limitations when listing an insane number of tags (PR #154).
  • Assorted test fixes (PRs #156, #158).
  • Compile warning fix in config.c (PR #159).
  • Ships with actual dos2unix and unix2dos.
  • The installer no longer recommends mixing with Cygwin.
  • Fixes a regression in Git-Cheetah which froze the Explorer upon calling Git Bash from the context menu (Git-Cheetah PRs #14 and #15).

Changes since Git-1.8.5.2-preview20131230

New Features

  • Comes with Git 1.9.0 plus Windows-specific patches.
  • Better work-arounds for Windows-specific path length limitations (pull request #122)
  • Uses optimized TortoiseGitPLink when detected (msysGit pull request #154)
  • Allow Windows users to use Linux Git on their files, using Vagrant (msysGit pull request #159)
  • InnoSetup 5.5.4 is now used to generate the installer (msysGit pull request #167)

Bugfixes

  • Fixed regression with interactive password prompt for remotes using the HTTPS protocol (issue #111)
  • We now work around Subversion servers printing non-ISO-8601-compliant time stamps (pull request #126)
  • The installer no longer sets the HOME environment variable (msysGit pull request #166)
  • Perl no longer creates empty sys$command files when no stdin is connected (msysGit pull request #152)

Changes since Git-1.8.4-preview20130916

New Features

  • Comes with Git 1.8.5.2 plus Windows-specific patches.
  • Windows-specific patches are now grouped into pseudo-branches which should make future development robust despite slow uptake of the Windows-specific patches by upstream git.git.
  • Works around more path length limitations (pull request #86)
  • Has an optional stat() cache toggled via core.fscache (pull request #107)

Bugfixes

  • Lots of installer fixes
  • git-cmd: Handle home directory on a different drive correctly (pull request #146)
  • git-cmd: add a helper to work with the ssh agent (pull request #135)
  • Git-Cheetah: prevent duplicate menu entries (pull request #7)
  • No longer replaces dos2unix with hd2u (a more powerful, but slightly incompatible version of dos2unix)

Changes since Git-1.8.3-preview20130601

New Features

  • Comes with Git 1.8.4 plus Windows specific patches.
  • Enabled unicode support in bash (#42 and #79)
  • Included iconv.exe to assist in writing encoding filters
  • Updated openssl to 0.9.8y

Bugfixes

  • Avoid emitting non-printing chars to set console title.
  • Various encoding fixes for the git test suite
  • Ensure wincred handles empty username/password.

Changes since Git-1.8.1.2-preview20130201

New Features

  • Comes with Git 1.8.3 plus Windows specific patches.
  • Updated curl to 7.30.0 with IPv6 support enabled.
  • Updated gnupg to 1.4.13
  • Installer improvements for update or reinstall options.

Bugfixes

  • Avoid emitting color coded ls output to pipes.
  • ccache binary updated to work on XP.
  • Fixed association of .sh files setup by the installer.
  • Fixed registry-based explorer menu items for XP (#95)

Changes since Git-1.8.0-preview20121022

New Features

  • Comes with Git 1.8.1.2 plus Windows specific patches.
  • Includes support for using the Windows Credential API to store access credentials securely and provide access via the control panel tool to manage git credentials.
  • Rebase autosquash support is now enabled by default. See http://goo.gl/2kwKJ for some suggestions on using this.
  • All msysGit development is now done on 'master' and the devel branches are deleted.
  • Tcl/Tk upgraded to 8.5.13.
  • InnoSetup updated to 5.5.3 (Unicode)

Bugfixes

  • Some changes to avoid clashing with cygwin quite so often.
  • The installer will attempt to handle files mirrored in the virtualstore.

Changes since Git-1.7.11-preview20120710

New Features

  • Comes with Git 1.8.0 plus Windows specific patches.
  • InnoSetup updated to 5.5.2

Bugfixes

  • Fixed icon backgrounds on low color systems
  • Avoid installer warnings during writability testing.
  • Fix bash prompt handling due to upstream changes.

Changes since Git-1.7.11-preview20120704

Bugfixes

  • Propagate error codes from git wrapper (issue #43, #45)
  • Include CAcert root certificates in SSL bundle (issue #37)

Changes since Git-1.7.11-preview20120620

New Features

  • Comes with the beautiful Git logo from http://git-scm.com/downloads/logos
  • The installer no longer asks for the directory and program group when updating
  • The installer now also auto-detects TortoisePlink that comes with TortoiseGit

Bugfixes

  • Git::SVN is correctly installed again
  • The default format for git help is HTML again
  • Replaced the git.cmd script with an exe wrapper to fix issue #36
  • Fixed executable detection to speed up help -a display.

Changes since Git-1.7.10-preview20120409

New Features

  • Comes with Git 1.7.11 plus Windows specific patches.
  • Updated curl to 7.26.0
  • Updated zlib to 1.2.7
  • Updated Inno Setup to 5.5.0 and avoid creating symbolic links (issue #16)
  • Updated openssl to 0.9.8x and support reading certificate files from Unicode paths (issue #24)
  • Version resource built into git executables.
  • Support the Large Address Aware feature to reduce chance out-of-memory on 64 bit windows when repacking large repositories.

Bugfixes

  • Please refer to the release notes for official Git 1.7.11.
  • Fix backspace/delete key handling in rxvt terminals.
  • Fixed TERM setting to avoid a warning from less.
  • Various fixes for handling unicode paths.

Changes since Git-1.7.9-preview20120201

New Features

  • Comes with Git 1.7.10 plus Windows specific patches.
  • UTF-8 file name support.

Bugfixes

  • Please refer to the release notes for official Git 1.7.10.
  • Clarifications in the installer.
  • Console output is now even thread-safer.
  • Better support for foreign remotes (Mercurial remotes are disabled for now, due to lack of a Python version that can be compiled within the development environment).
  • Git Cheetah no longer writes big log files directly to C:\.
  • Development environment: enhancements in the script to make a 64-bit setup.
  • Development environment: enhancements to the 64-bit Cheetah build.

Changes since Git-1.7.8-preview20111206

New Features

  • Comes with Git 1.7.9 plus Windows specific patches.
  • Improvements to the installer running application detection.

Bugfixes

  • Please refer to the release notes for official Git 1.7.9
  • Fixed initialization of the git-cheetah submodule in net-installer.
  • Fixed duplicated context menu items with git-cheetah on Windows 7.
  • Patched gitk to display filenames when run on a subdirectory.
  • Tabbed gitk preferences dialog to allow use on smaller screens.

Changes since Git-1.7.7.1-preview20111027

New Features

  • Comes with Git 1.7.8 plus Windows specific patches.
  • Updated Tcl/Tk to 8.5.11 and libiconv to 1.14
  • Some changes to support building with MSVC compiler.

Bugfixes

  • Please refer to the release notes for official Git 1.7.8
  • Git documentation submodule location fixed.

Changes since Git-1.7.7-preview20111014

New Features

  • Comes with Git 1.7.7.1 plus patches.

Bugfixes

  • Please refer to the release notes for official Git 1.7.7.1
  • Includes an important upstream fix for a bug that sometimes corrupts the git index file.

Changes since Git-1.7.6-preview20110708

New Features

  • Comes with Git 1.7.7 plus patches.
  • Updated gzip/gunzip and include unzip and gvim
  • Primary repositories moved to GitHub

Bugfixes

  • Please refer to the release notes for official Git 1.7.7
  • Re-enable vim highlighting
  • Fixed issue with libiconv/libiconv-2 location
  • Fixed regressions in Git Bash script
  • Fixed installation of mergetools for difftool and mergetool use and launching of beyond compare on windows.
  • Fixed warning about mising hostname during git fetch

Changes since Git-1.7.4-preview20110211

New Features

  • Comes with Git 1.7.6 plus patches.
  • Updates to various supporting tools (openssl, iconv, InnoSetup)

Bugfixes

  • Please refer to the release notes for official Git 1.7.6
  • Fixes to msys compat layer for directory entry handling and command line globbing.

Changes since Git-1.7.3.2-preview20101025

New Features

  • Comes with Git 1.7.4 plus patches.
  • Includes antiword to enable viewing diffs of .doc files
  • Includes poppler to enable viewing diffs of .pdf files
  • Removes cygwin paths from the bash shell PATH

Bugfixes

  • Please refer to the release notes for official Git 1.7.4

Changes since Git-1.7.3.1-preview20101002

New Features

  • Comes with Git 1.7.3.2 plus patches.

Changes since Git-1.7.2.3-preview20100911

New Features

  • Comes with Git 1.7.3.1 plus patches.
  • Updated to Vim 7.3, file-5.04 and InnoSetup 5.3.11

Bugfixes

  • Issue 528 (remove uninstaller from Start Menu) was fixed
  • Issue 527 (failing to find the certificate authority bundle) was fixed
  • Issue 524 (remove broken and unused sdl-config file) was fixed
  • Issue 523 (crash pushing to WebDAV remote) was fixed

Changes since Git-1.7.1-preview20100612

New Features

  • Comes with Git 1.7.2.3 plus patches.

Bugfixes

  • Issue 519 (build problem with compat/regex/regexec.c) was fixed
  • Issue 430 (size of panes not preserved in git-gui) was fixed
  • Issue 411 (git init failing to work with CIFS paths) was fixed
  • Issue 501 (failing to clone repo from root dir using relative path) was fixed

Changes since Git-1.7.0.2-preview20100309

New Features

  • Comes with Git 1.7.1 plus patches.

Bugfixes

  • Issue 27 (git-send-mail not working properly) was fixed again
  • Issue 433 (error while running git svn fetch) was fixed
  • Issue 427 (Gitk reports error: "couldn't compile regular expression pattern: invalid repetition count(s)") was fixed
  • Issue 192 (output truncated) was fixed again
  • Issue 365 (Out of memory? mmap failed) was fixed
  • Issue 387 (gitk reports "error: couldn't execute "git:" file name too long") was fixed
  • Issue 409 (checkout of large files to network drive fails on XP) was fixed
  • Issue 428 (The return value of git.cmd is not the same as git.exe) was fixed
  • Issue 444 (Git Bash Here returns a "File not found error" in Windows 7 Professional - 64 bits) was fixed
  • Issue 445 (git help does nothing) was fixed
  • Issue 450 (git --bare init shouldn't set the directory to hidden.) was fixed
  • Issue 456 (git script fails with error code 1) was fixed
  • Issue 469 (error launch wordpad in last netinstall) was fixed
  • Issue 474 (git update-index --index-info silently does nothing) was fixed
  • Issue 482 (Add documentation to avoid "fatal: $HOME not set" error) was fixed
  • Issue 489 (git.cmd issues warning if %COMSPEC% has spaces in it) was fixed
  • Issue 436 (mkdir : No such file or directory error while using git-svn to fetch or rebase) was fixed
  • Issue 440 (Uninstall does not remove cheetah.) was fixed
  • Issue 441 (Git-1.7.0.2-preview20100309.exe installer fails with unwritable msys-1.0.dll when ssh-agent is running) was fixed

Changes since Git-1.6.5.1-preview20091022

New Features

  • Comes with official Git 1.7.0.2.
  • Comes with Git-Cheetah (on 32-bit Windows only, for now).
  • Comes with connect.exe, a SOCKS proxy.
  • Tons of improvements in the installer, thanks to Sebastian Schuberth.
  • On Vista, if possible, symlinks are used for the built-ins.
  • Features Hany's dos2unix tool, thanks to Sebastian Schuberth.
  • Updated Tcl/Tk to version 8.5.8 (thanks Pat Thoyts!).
  • By default, only .git/ is hidden, to work around a bug in Eclipse (thanks to Erik Faye-Lund).

Bugfixes

  • Fixed threaded grep (thanks to Heiko Voigt).
  • git gui was fixed for all kinds of worktree-related failures (thanks Pat Thoyts).
  • git gui now fully supports themed widgets (thanks Pat Thoyts and Heiko Voigt).
  • Git no longer complains about an unset RUNTIME_PREFIX (thanks Johannes Sixt).
  • git gui can Explore Working Copy on Windows again (thanks Markus Heidelberg).
  • git gui can create shortcuts again (fixes issue 425, thanks Heiko Voigt).
  • When git checkout cannot overwrite files because they are in use, it will offer to try again, giving the user a chance to release the file (thanks Heiko Voigt).
  • Ctrl+W will close gitk (thanks Jens Lehmann).
  • git gui no longer binds Ctrl+C, which caused problems when trying to use said shortcut for the clipboard operation "Copy" (fixes issue 423, thanks Pat Thoyts).
  • gitk does not give up when the command line length limit is reached (issue 387).
  • The exit code is fixed when Git.cmd is called from cmd.exe (thanks Alexey Borzenkov).
  • When launched via the (non-Cheetah) shell extension, the window icon is now correct (thanks Sebastian Schuberth).
  • Uses a TrueType font for the console, to be able to render UTF-8 correctly.
  • Clarified the installer's line ending options (issue 370).
  • Substantially speeded up startup time from cmd unless NO_FSTAB_THREAD is set (thanks Johannes Sixt).
  • Update msys-1.0.dll yet again, to handle quoted parameters better (thanks Heiko Voigt).
  • Updated cURL to a version that supports SSPI.
  • Updated tar to handle the pax headers generated by git archive.
  • Updated sed to a version that can handle the filter-branch examples.
  • .git* files can be associated with the default text editor (issue 397).

Changes since Git-1.6.4-preview20090729

New Features

  • Comes with official git 1.6.5.1.
  • Thanks to Johan 't Hart, files and directories starting with a single dot (such as.git) will now be marked hidden (you can disable this setting with core.hideDotFiles=false in your config) (Issue 288).
  • Thanks to Thorvald Natvig, Git on Windows can simulate symbolic links by using reparse points when available. For technical reasons, this only works for symbolic links pointing to files, not directories.
  • A lot of work has been put into making it possible to compile Git's source code (the part written in C, of course, not the scripts) with Microsoft Visual Studio. This work is ongoing.
  • Thanks to Sebastian Schuberth, we only offer the (Tortoise)Plink option in the installer if the presence of Plink was detected and at least one Putty session was found..
  • Thanks to Sebastian Schuberth, the installer has a nicer icon now.
  • Some more work by Sebastian Schuberth was done on better integration of Plink (Issues 305 & 319).

Bugfixes

  • Thanks to Sebastian Schuberth, git svn picks up the SSH setting specified with the installer (Issue 305).

Changes since Git-1.6.3.2-preview20090608

New Features

  • Comes with official git 1.6.4.
  • Supports https:// URLs, thanks to Erik Faye-Lund.
  • Supports send-email, thanks to Erik Faye-Lund (Issue 27).
  • Updated Tcl/Tk to version 8.5.7, thanks to Pat Thoyts.

Bugfixes

  • The home directory is now discovered properly (Issues 108 & 259).
  • IPv6 is supported now, thanks to Martin Martin Storsjö (Issue 182).

Changes since Git-1.6.3-preview20090507

New Features

  • Comes with official git 1.6.3.2.
  • Uses TortoisePlink instead of Plink if available.

Bugfixes

  • Plink errors out rather than hanging when the user needs to accept a host key first (Issue 96).
  • The user home directory is inferred from $HOMEDRIVE\$HOMEPATH instead of$HOME (Issue 108).
  • The environment setting $CYGWIN=tty is ignored (Issues 138, 248 and 251).
  • The ls command shows non-ASCII filenames correctly now (Issue 188).
  • Adds more syntax files for vi (Issue 250).
  • $HOME/.bashrc is included last from /etc/profile, allowing.bashrc to override all settings in/etc/profile (Issue 255).
  • Completion is case-insensitive again (Issue 256).
  • The start command can handle arguments with spaces now (Issue 258).
  • For some Git commands (such as git commit), vi no longer "restores" the cursor position.

Changes since Git-1.6.2.2-preview20090408

New Features

  • Comes with official git 1.6.3.
  • Thanks to Marius Storm-Olsen, Git has a substantially faster readdir() implementation now.
  • Marius Storm-Olsen also contributed a patch to include nedmalloc, again speeding up Git noticably.
  • Compiled with GCC 4.4.0

Bugfixes

  • Portable Git contains a README.portable.
  • Portable Git now actually includes the builtins.
  • Portable Git includes git-cmd.bat and git-bash.bat.
  • Portable Git is now shipped as a .7z; it still is a self-extracting archive if you rename it to.exe.
  • Git includes the Perl Encode module now.
  • Git now includes the filter-branch tool.
  • There is a workaround for a Windows 7 regression triggering a crash in the progress reporting (e.g. during a clone). This fixes issues 236 and 247.
  • gitk tries not to crash when it is closed while reading references (Issue 125, thanks Pat Thoyts).
  • In some setups, hard-linking is not as reliable as it should be, so we have a workaround which avoids hard links in some situations (Issues 222 and 229).
  • git-svn sets core.autocrlf to false now, hopefully shutting up most of thegit-svn reports.

Changes since Git-1.6.2.1-preview20090322

New Features

  • Comes with official git 1.6.2.2.
  • Upgraded Tcl/Tk to 8.5.5.
  • TortoiseMerge is supported by mergetool now.
  • Uses pthreads (faster garbage collection on multi-core machines).
  • The test suite passes!

Bugfixes

  • Renaming was made more robust (due to Explorer or some virus scanners, files could not be renamed at the first try, so we have to try multiple times).
  • Johannes Sixt made lots of changes to the test-suite to identify properly which tests should pass, and which ones cannot pass due to limitations of the platform.
  • Support PAGERs with spaces in their filename.
  • Quite a few changes were undone which we needed in the olden days of msysGit.
  • Fall back to / when HOME cannot be set to the real home directory due to locale issues (works around Issue 108 for the moment).

Changes since Git-1.6.2-preview20090308

New Features

  • Comes with official git 1.6.2.1.
  • A portable application is shipped in addition to the installer (Issue 195).
  • Comes with a Windows-specific mmap() implementation (Issue 198).

Bugfixes

  • ANSI control characters are no longer shown verbatim (Issue 124).
  • Temporary files are created respecting core.autocrlf (Issue 177).
  • The Git Bash prompt is colorful again (Issue 199).
  • Fixed crash when hardlinking during a clone failed (Issue 204).
  • An infinite loop was fixed in git-gui (Issue 205).
  • The ssh protocol is always used with plink.exe (Issue 209).
  • More vim files are shipped now, so that syntax highlighting works.

Changes since Git-1.6.1-preview20081225

New Features

  • Comes with official git 1.6.2.
  • Comes with upgraded vim 7.2.
  • Compiled with GCC 4.3.3.
  • The user can choose the preferred CR/LF behavior in the installer now.
  • Peter Kodl contributed support for hardlinks on Windows.
  • The bash prompt shows information about the current repository.

Bugfixes

  • If supported by the file system, pack files can grow larger than 2gb.
  • Comes with updated msys-1.0.dll (should fix some Vista issues).
  • Assorted fixes to support the new libexec/git-core/ layout better.
  • Read-only files can be properly replaced now.
  • git-svn is included again (original caveats still apply).
  • Obsolete programs from previous installations are cleaned up.

Changes since Git-1.6.0.2-preview20080923

New Features

  • Comes with official git 1.6.1.
  • Avoid useless console windows.
  • Installer remembers how to handle PATH.

Changes since Git-1.6.0.2-preview20080921

Bugfixes

  • ssh works again.
  • git add -p works again.
  • Various programs that aborted with Assertion failed: argv0_path are fixed.

Changes since Git-1.5.6.1-preview20080701

  • Removed Features
  • git svn is excluded from the end-user installer (see Known Issues).

New Features

  • Comes with official git 1.6.0.2.

Bugfixes

  • No Windows-specific bugfixes.

Changes since Git-1.5.6-preview20080622

New Features

  • Comes with official git 1.5.6.1.

Bugfixes

  • Includes fixed msys-1.0.dll that supports Vista and Windows Server 2008 (Issue 122).
  • cmd wrappers do no longer switch off echo.

Changes since Git-1.5.5-preview20080413

New Features

  • Comes with official git 1.5.6.
  • Installer supports configuring a user provided Plink (PuTTY).

Bugfixes

  • Comes with tweaked msys-1.0.dll to solve some command line mangling issues.
  • cmd wrapper does no longer close the command window.
  • Programs in the system PATH, for example editors, can be launched from Git without specifying their full path.
  • git stash apply stash@{1} works.
  • Comes with basic ANSI control code emulation for the Windows console to avoid wrapping of pull/merge's diffstats.
  • Git correctly passes port numbers to PuTTY's Plink

Changes since Git-1.5.4-preview20080202

New Features

  • Comes with official git 1.5.5.
  • core.autocrlf is enabled (true) by default. This means git converts to Windows line endings (CRLF) during checkout and converts to Unix line endings (LF) during commit. This is the right choice for cross-platform projects. If the conversion is not reversible, git warns the user. The installer warns about the new default before the installation starts.
  • The user does no longer have to "accept" the GPL but only needs to press "continue".
  • Installer deletes shell scripts that have been replaced by builtins. Upgrading should be safer.
  • Supports git svn. Note that the performance might be below your expectation.

Bugfixes

  • Newer ssh fixes connection failures (issue 74).
  • Comes with MSys-1.0.11-20071204. This should solve some "fork: resource unavailable" issues.
  • All DLLs are rebased to avoid problems with "fork" on Vista.

Changes since Git-1.5.3.6-preview20071126

New Features

  • Comes with official git 1.5.4.
  • Some commands that are not yet suppoted on Windows are no longer included (see Known Issues above).
  • Release notes are displayed in separate window.
  • Includes qsort replacement to improve performance on Windows 2000.

Bugfixes

  • Fixes invalid error message that setup.ini cannot be deleted on uninstall.
  • Setup tries harder to finish the installation and reports more detailed errors.
  • Vim's syntax highlighting is suitable for dark background.

Changes since Git-1.5.3.5-preview20071114

New Features

  • Git is included in version 1.5.3.6.
  • Setup displays release notes.

Bugfixes

  • pull/fetch/push in git-gui works. Note, there is no way forssh to ask for a passphrase or for confirmation if you connect to an unknown host. So, you must have ssh set up to work without passphrase. Either you have a key without passphrase, or you started ssh-agent. You may also consider using PuTTY by pointingGIT_SSH toplink.exe and handle your ssh keys with Pageant. In this case you should include your login name in urls. You must also connect to an unknown host once from the command line and confirm the host key, before you can use it fromgit-gui.

Changes since Git-1.5.3-preview20071027

New Features

  • Git is included in version 1.5.3.5.
  • Setup can be installed as normal user.
  • When installing as Administrator, all icons except the Quick Launch icon will be created for all users.
  • git help user-manual displays the user manual.

Bugfixes

  • Git Bash works on Windows XP 64.

Changes since Git-1.5.3-preview20071019

Bugfixes

  • The templates for a new repository are found.
  • The global configuration /etc/gitconfig is found.
  • Git Gui localization works. It falls back to English if a translation has errors.

Changes since WinGit-0.2-alpha

  • The history of the release notes stops here. Various new features and bugfixes are available since WinGit-0.2-alpha. Please check the git history of the msysgit project for details.


阅读更多

没有更多推荐了,返回首页