[cmake-developers] git move
Brad King
brad.king at kitware.com
Tue Mar 9 17:42:03 EST 2010
Alexander Neundorf wrote:
> [remote "origin"]
> url = git://cmake.org/cmake.git
> fetch = +refs/heads/*:refs/remotes/origin/*
> pushurl = git at cmake.org:cmake.git
Git 1.6.4 or higher is needed for "pushurl" to be honored.
With Git < 1.6.4 you can just set the url to "git at cmake.org:cmake.git".
Yesterday I updated the wiki to mention this.
What is 'git --version'? What about
git push git at cmake.org:cmake.git master:master
?
> P.S. how can I see what will be pushed, i.e. something like "git diff" but not
> between my working copy and my local repository, but between my local
> repository and the remote one ?
You want to see the commits that you have locally that are not reachable
from the remote branch:
git log '^origin/master' master
Think of this as a set difference operation...it lists the commits reachable
from your local "master" that are *not* reachable from "origin/master".
A shorthand for this is
git log origin/master..master
Follow links here for help:
http://www.cmake.org/Wiki/CMake/Git#Resources
-Brad
More information about the cmake-developers
mailing list