[Openstack-docs] Need to retrieve old files? No worries

Anne Gentle anne at openstack.org
Thu Sep 12 03:23:25 UTC 2013


I just like to say no worries so I sound Aussie. :)

I'm working on ensuring that some Identity configuration info is correctly
placed, so I wanted a copy of the repository before the rename. Here's how
you do that in case you ever need to get an "archived" copy of the repo.

1. Switch into a temporary directory.
2. Clone the openstack-manuals repository.
$ git clone http://github.com/openstack/openstack-manuals.git
Cloning into 'openstack-manuals'...
remote: Counting objects: 30034, done.
remote: Compressing objects: 100% (9438/9438), done.
remote: Total 30034 (delta 17276), reused 26918 (delta 14505)
Receiving objects: 100% (30034/30034), 55.18 MiB | 990 KiB/s, done.
Resolving deltas: 100% (17276/17276), done.
3. Go to review.openstack.org and look for the patch that occured just
before the rename patch. (It's https://review.openstack.org/#/c/45491/).
4. On that page, click the "checkout" tab and then copy the long git
command to checkout that exact patch.
5. Switch into the openstack-manuals directory and paste that command:
$ cd openstack-manuals
$ git fetch https://review.openstack.org/openstack/openstack-manualsrefs/changes/91/45491/4
&& git checkout FETCH_HEAD
>From https://review.openstack.org/openstack/openstack-manuals
 * branch            refs/changes/91/45491/4 -> FETCH_HEAD
Note: checking out 'FETCH_HEAD'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b new_branch_name

HEAD is now at d5bcc13... Add HSTS and cookie security to dashboard example
config

Now I have copies of the files I need and I can carefully copy them into
the working directory to make a new patch.

Hope this helps -- didn't really want to clutter up the wiki page with this
long explanation since it should only be needed very, very rarely.

Anne
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-docs/attachments/20130911/677a1d57/attachment.html>


More information about the Openstack-docs mailing list