www-infrastructure-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kristian Rosenvold <krosenv...@apache.org>
Subject Re: Git, history, protection, and other topics
Date Wed, 04 Nov 2015 13:21:22 GMT
Just an example, taken from github:

git clone https://github.com/apache/commons-lang.git
cd commons-lang

< You now have a "complete" commons-lang repo, which you can inspect
with gitk --all or similar>

git config --add remote.origin.fetch
"+refs/pull/*/head:refs/remotes/origin/pull/*"
git fetch

<Watch the fireworks>

Using gitk --all, you'll now see that the "complete" github repo
contains all the pull requests too, github just did not tell us about
them on the initial clone. In the same manner, all historic refs could
be stored.

Kristian

Mime
View raw message