Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 145 lines (129 sloc) 5.601 kb
b2845ed Converted the git sample to HTML.
Matt Burke authored
1 <html>
2 <head>
3 <title>A sample git-tfs session</title>
4 <style>
c0c1b81 Moved content from css to text.
Matt Burke authored
5 .command .prompt
b2845ed Converted the git sample to HTML.
Matt Burke authored
6 {
7 color: yellow;
8 }
9 .command
10 {
11 color: #0f0;
12 }
13 .output
14 {
15 white-space: pre;
16 }
17 </style>
18 </head>
19 <body>
c0c1b81 Moved content from css to text.
Matt Burke authored
20
21 <div style="font-weight: bold; font-family: monospace; background-color: black; color: white; padding: 1em; overflow: scroll;">
22 <div class="run"><div class="command"><span class="prompt">&gt;&gt;&gt; </span>pwd</div>
b2845ed Converted the git sample to HTML.
Matt Burke authored
23 <div class="output">/d/Projects
24 </div></div>
c0c1b81 Moved content from css to text.
Matt Burke authored
25 <div class="run"><div class="command"><span class="prompt">&gt;&gt;&gt; </span>git tfs clone</div>
b2845ed Converted the git sample to HTML.
Matt Burke authored
26 <div class="output">Usage: git-tfs init [options] tfs-url repository-path [git-repository]
27 where options are:
28
29 -V, --version
30 (Type: Flag, Value Type:[Boolean])
31 ShowVersion
32
33 -h, -H, --help
34 (Type: Flag, Value Type:[Boolean])
35 ShowHelp
36
37 -i, --tfs-remote, --remote, --id
38 (Type: Value required, Value Type:[String])
39 An optional remote ID, useful if this repository will track multiple TFS repositories.
40
41 -d, --debug
42 (Type: Flag, Value Type:[Boolean])
43 Show lots of output.
44 --shared
45 (Type: Value required, Value Type:[Object])
46 The --shared option to pass to git-init.
47
48 --no-metadata
49 (Type: Flag, Value Type:[Boolean])
50 If specified, git-tfs will leave out the git-tfs-id: lines at the end of every commit.
51
52 --template
53 (Type: Value required, Value Type:[String])
54 The --template option to pass to git-init.
55 --username
56 (Type: Value required, Value Type:[String])
57 Your TFS username, including domain (e.g. DOMAIN\user).
58
59 --ignore-regex
60 (Type: Value required, Value Type:[String])
61 If specified, git-tfs will not sync any paths that match this regular expression.
62 </div></div>
c0c1b81 Moved content from css to text.
Matt Burke authored
63 <div class="run"><div class="command"><span class="prompt">&gt;&gt;&gt; </span>git tfs clone http://team:8080/ $/sandbox sample_for_git_tfs</div>
b2845ed Converted the git sample to HTML.
Matt Burke authored
64 <div class="output">Initialized empty Git repository in d:/Projects/sample_for_git_tfs/.git/
65 C4949 = 84cfc504fd85a826ede8d852e3a5e75fc8952bd2
66 C69840 = fb10351a88a948d07b3eb6ef176b7e3bb1999ecb
67 C69841 = 764abfc9995945cafce2e23a1d2735aec8d288bd
68 C69842 = bb87001af0e93de25e13dab4602db2f84f4b1932
69 C69843 = 664705c06790fbd1da066833e9e81da24c88ea61
70 C86163 = 99d300275e87adedae65cd3c9a57c9f55c76eb94
71 C86164 = 2d10de0deb9fe96e22b14eb2e65e2f95ef55c1d6
72 C86165 = da9da4b79b2d9e16aa17f6a12317bfe3e29687de
73 C86167 = b3d7f12b3cf39b546cb19ddc37518be1080b86d8
74 C86170 = 5df88af2597f219a7b4ccf979ff90ff1cc7ed05b
75 C86209 = 46d814b83a5a75508e1584a8850d8bcb3c9d5a7d
76 </div></div>
c0c1b81 Moved content from css to text.
Matt Burke authored
77 <div class="run"><div class="command"><span class="prompt">&gt;&gt;&gt; </span>cd sample_for_git_tfs</div>
b2845ed Converted the git sample to HTML.
Matt Burke authored
78 <div class="output"></div>
c0c1b81 Moved content from css to text.
Matt Burke authored
79 <div class="run"><div class="command"><span class="prompt">&gt;&gt;&gt; </span>ls -R</div>
b2845ed Converted the git sample to HTML.
Matt Burke authored
80 <div class="output">.:
81 ANewDirectory
82
83 ./ANewDirectory:
84 SomeDir
85
86 ./ANewDirectory/SomeDir:
87 readme.txt sayhi.bat
88 </div></div>
c0c1b81 Moved content from css to text.
Matt Burke authored
89 <div class="run"><div class="command"><span class="prompt">&gt;&gt;&gt; </span>echo another line &gt;&gt; ANewDirectory/SomeDir/readme.txt</div>
b2845ed Converted the git sample to HTML.
Matt Burke authored
90 <div class="output"></div>
c0c1b81 Moved content from css to text.
Matt Burke authored
91 <div class="run"><div class="command"><span class="prompt">&gt;&gt;&gt; </span>git commit -a -m "Contributed using git-tfs."</div>
b2845ed Converted the git sample to HTML.
Matt Burke authored
92 <div class="output">[master a72b561] Contributed using git-tfs.
93 1 files changed, 1 insertions(+), 0 deletions(-)
94 </div></div>
c0c1b81 Moved content from css to text.
Matt Burke authored
95 <div class="run"><div class="command"><span class="prompt">&gt;&gt;&gt; </span>git tfs shelve</div>
b2845ed Converted the git sample to HTML.
Matt Burke authored
96 <div class="output">Usage: git-tfs shelve [options] shelveset-name [ref-to-shelve]
97 where options are:
98
99 -V, --version
100 (Type: Flag, Value Type:[Boolean])
101 ShowVersion
102
103 -h, -H, --help
104 (Type: Flag, Value Type:[Boolean])
105 ShowHelp
106
107 -i, --tfs-remote, --remote, --id
108 (Type: Value required, Value Type:[String])
109 An optional remote ID, useful if this repository will track multiple TFS repositories.
110
111 -d, --debug
112 (Type: Flag, Value Type:[Boolean])
113 Show lots of output.
114 </div></div>
c0c1b81 Moved content from css to text.
Matt Burke authored
115 <div class="run"><div class="command"><span class="prompt">&gt;&gt;&gt; </span>git tfs shelve GIT_TFS_SAMPLE</div>
b2845ed Converted the git sample to HTML.
Matt Burke authored
116 <div class="output">edit ANewDirectory/SomeDir/readme.txt
117 </div></div>
c0c1b81 Moved content from css to text.
Matt Burke authored
118 <div class="run"><div class="command"><span class="prompt">&gt;&gt;&gt; </span>mkdir ../sample_workspace</div>
b2845ed Converted the git sample to HTML.
Matt Burke authored
119 <div class="output"></div>
c0c1b81 Moved content from css to text.
Matt Burke authored
120 <div class="run"><div class="command"><span class="prompt">&gt;&gt;&gt; </span>cd ../sample_workspace</div>
b2845ed Converted the git sample to HTML.
Matt Burke authored
121 <div class="output"></div>
c0c1b81 Moved content from css to text.
Matt Burke authored
122 <div class="run"><div class="command"><span class="prompt">&gt;&gt;&gt; </span>tf workspace -new -noprompt sample_workspace</div>
b2845ed Converted the git sample to HTML.
Matt Burke authored
123 <div class="output"></div>
c0c1b81 Moved content from css to text.
Matt Burke authored
124 <div class="run"><div class="command"><span class="prompt">&gt;&gt;&gt; </span>tf unshelve -noprompt GIT_TFS_SAMPLE</div>
b2845ed Converted the git sample to HTML.
Matt Burke authored
125 <div class="output">sandbox\ANewDirectory\SomeDir:
126 Unshelving edit: readme.txt
127 </div></div>
c0c1b81 Moved content from css to text.
Matt Burke authored
128 <div class="run"><div class="command"><span class="prompt">&gt;&gt;&gt; </span>tf diff -noprompt</div>
b2845ed Converted the git sample to HTML.
Matt Burke authored
129 <div class="output">edit: d:\Projects\sample_workspace\sandbox\ANewDirectory\SomeDir\readme.txt
130 File: sandbox\ANewDirectory\SomeDir\readme.txt
131 ===================================================================
132 --- sandbox\ANewDirectory\SomeDir\readme.txt;C69843 (server) 1/28/2010 1:02 PM
133 +++ sandbox\ANewDirectory\SomeDir\readme.txt (local) 1/28/2010 1:02 PM
134 @@ -4,3 +4,4 @@
135 ----
136 This line was added for the second checkin.
137 This line was added after the parent directory was nested inside a new top-level-directory.
138 +another line
139 ===================================================================
140 </div></div>
c0c1b81 Moved content from css to text.
Matt Burke authored
141 </div>
142
b2845ed Converted the git sample to HTML.
Matt Burke authored
143 </body>
144 </html>
Something went wrong with that request. Please try again.