Created
July 12, 2012 23:40
-
-
Save twasink/3101834 to your computer and use it in GitHub Desktop.
Sanjiv owes me a beer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tmp $ mkdir nomasters | |
tmp $ cd nomasters/ | |
nomasters $ git init --bare | |
Initialized empty Git repository in /Users/robertdw/tmp/nomasters/ | |
nomasters [BARE:master]$ git log master | |
fatal: ambiguous argument 'master': unknown revision or path not in the working tree. | |
Use '--' to separate paths from revisions | |
nomasters [master]$ git remote add -t a_branch origin https://github.com/twasink/jbehave-spike | |
nomasters [master]$ git fetch | |
remote: Counting objects: 313, done. | |
remote: Compressing objects: 100% (177/177), done. | |
remote: Total 313 (delta 66), reused 298 (delta 53) | |
Receiving objects: 100% (313/313), 53.64 KiB | 15 KiB/s, done. | |
Resolving deltas: 100% (66/66), done. | |
From https://github.com/twasink/jbehave-spike | |
* [new branch] a_branch -> origin/a_branch | |
nomasters [master]$ git log master | |
fatal: ambiguous argument 'master': unknown revision or path not in the working tree. | |
Use '--' to separate paths from revisions | |
nomasters [master]$ git log a_branch | |
fatal: ambiguous argument 'a_branch': unknown revision or path not in the working tree. | |
Use '--' to separate paths from revisions | |
nomasters [master]$ git log origin/a_branch | |
commit 4edcdfceab91591cad6d34206825bb5607205964 | |
[OUTPUT SNIPPED] | |
nomasters [master]$ git checkout a_branch | |
Branch a_branch set up to track remote branch a_branch from origin. | |
Switched to a new branch 'a_branch' | |
nomasters [a_branch]$ ls | |
README.md jbehave-spring-hibernate/ trader/ | |
jbehave-simple-story/ pom.xml | |
nomasters [a_branch]$ git log master | |
fatal: ambiguous argument 'master': unknown revision or path not in the working tree. | |
Use '--' to separate paths from revisions | |
nomasters [a_branch]$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment