Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
62 lines (40 sloc) 1.11 KB

git

Install

  $ wget http://git-core.googlecode.com/files/git-1.8.1.tar.gz
  $ tar xzvf git-1.8.1.tar.gz
  $ cd git-1.8.1
  
  $ cat INSTALL
  
  $ ./configure --prefix="$(pwd)/../install/1.8.1"
  $ make PROFILE=BUILD install  # optimized installation

Debug

  $ export GIT_CURL_VERBOSE=1

For HTTPS errors, see https://help.github.com/articles/https-cloning-errors.

SSL certificate problem, verify that the CA cert is OK.

Tell cURL to not check for SSL certificates:

  1. Environment variable (temporary)

      $ env GIT_SSL_NO_VERIFY=true git pull
  2. git-config

      # set local configuration
      $ git config --local http.sslVerify false
    
      # set global configuration
      $ git config --global http.sslVerify false

Rebase

Rebasing Merge Commits

  $ git fetch origin
  $ git rebase --preserve-merges origin/master
  $ git pull --rebase # can't supply --preserve-merges

Diff

In-browser diff: rubychan/water