分享

Ubuntu Git Install 1.7.5 and Why

 盈盈一书屋 2012-02-28

Ubuntu Git Install 1.7.5 and Why

If you use Git a lot, you probably want to run the latest version. Scroll down for some reasons why.

The standard repository version for Ubuntu is 1.7.1, the current latest is 1.7.5 and there are some significant differences.

How to Upgrade Git

To get 1.7.5 on Ubuntu without too much messing about you can do the following:

1. Set up this PPA:

CODE:
  1. sudo add-apt-repository ppa:pdoes/ppa/ubuntu

2. Now run an aptitude update and upgrade git

CODE:
  1. sudo apt-get update
  2. sudo aptitude upgrade git

3. Now check your git version

CODE:
  1. git --version

Full Script for the lazy

CODE:
  1. sudo add-apt-repository ppa:pdoes/ppa/ubuntu && sudo apt-get update && sudo aptitude upgrade && git --version

Why Upgrade Git?

We have been having lots of merge hassles casued purely by white space changes. Apparently with 1.7.4 new recursive merge strategies came into play that should alleviate this pain and make merging a lot less hassle.

Merge Ignore Whitespace

CODE:
  1. git merge -s recursive -Xignore-space-change $BRANCH_NAME

Less hassle equals more productive and happier developers :)

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约