これまでgitを使ったことが無かったので、debug_kit 1.3をcheckoutするまでの手順を残しておきます。

作業環境はUbuntu 10.10です。

<br />
ko@ubuntu:~$ git clone git://<br />
Initialized empty Git repository in /home/ko/debug_kit/.git/<br />
remote: Counting objects: 4296, done.<br />
remote: Compressing objects: 100% (1680/1680), done.<br />
remote: Total 4296 (delta 2259), reused 4134 (delta 2115)<br />
Receiving objects: 100% (4296/4296), 645.16 KiB | 177 KiB/s, done.<br />
Resolving deltas: 100% (2259/2259), done.<br />
ko@ubuntu:~$ cd debug_kit<br />
ko@ubuntu:~/debug_kit$ git branch -r<br />
origin/1.0-branch<br />
origin/1.2-branch<br />
origin/1.3<br />
origin/HEAD -&gt; origin/master<br />
origin/master<br />
ko@ubuntu:~/debug_kit$ git checkout origin/1.3<br />
Note: checking out 'origin/1.3'.</p>
<p>You are in 'detached HEAD' state. You can look around, make experimental<br />
changes and commit them, and you can discard any commits you make in this<br />
state without impacting any branches by performing another checkout.</p>
<p>If you want to create a new branch to retain commits you create, you may<br />
do so (now or later) by using -b with the checkout command again. Example:</p>
<p>git checkout -b new_branch_name</p>
<p>HEAD is now at 498e076... Merge branch 'old-master' into 1.3<br />
ko@ubuntu:~/debug_kit$ git branch<br />
* (no branch)<br />
master<br />


photo credit: Lunar Logic via photopin cc