author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Mon, 19 Oct 2015 17:04:52 +0300 | |
changeset 1769 | cadd23f8127f |
parent 1714 | eed8cfffa44e |
child 1771 | b2d4be61da16 |
permissions | -rw-r--r-- |
1002 | 1 |
.. -*- coding: utf-8; -*- |
1334
9bf0d5a1f0cf
Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1089
diff
changeset
|
2 |
.. include:: HEADER.rst |
1002 | 3 |
|
4 |
====== |
|
5 |
Git. |
|
6 |
====== |
|
1032
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1002
diff
changeset
|
7 |
.. contents:: |
1002 | 8 |
|
9 |
Setup git. |
|
10 |
========== |
|
11 |
||
12 |
Debian. |
|
13 |
------- |
|
14 |
||
15 |
For Etch Degian release use git-core package from backports, |
|
16 |
old 1.4 version of git very dumb compared to new version 1.5:: |
|
17 |
||
18 |
$ sudo apt-get install git-core |
|
19 |
||
20 |
After install setup some options:: |
|
21 |
||
22 |
$ git config --global user.name "Oleksandr Gavenko" |
|
23 |
$ git config --global user.mail "gavenkoa@gmail.com" |
|
24 |
$ cat ~/.gitconfig |
|
25 |
[user] |
|
26 |
name = Oleksandr Gavenko |
|
27 |
mail = gavenkoa@gmail.com |
|
28 |
||
29 |
Cygwin. |
|
30 |
------- |
|
31 |
||
32 |
$ setup.exe -p git |
|
33 |
||
34 |
git over proxy. |
|
35 |
=============== |
|
36 |
||
37 |
Only http:// protocol support proxy (not git://):: |
|
38 |
||
39 |
$ export http_proxy="http://username:password@proxy:port/" |
|
40 |
$ git clone http://github.com/$user/$proj.git $proj |
|
41 |
||
42 |
You can store proxy settings under repository local config file:: |
|
43 |
||
44 |
$ git config http.proxy http://$user:$passwd@$ip:$port |
|
45 |
||
46 |
Start your project. |
|
47 |
=================== |
|
48 |
||
49 |
Setup proj space on fs:: |
|
50 |
||
51 |
$ mkdir proj |
|
52 |
$ cd proj |
|
53 |
$ git init |
|
54 |
Initialized empty Git repository in /home/user/tmp/proj/.git/ |
|
55 |
$ ls -a |
|
56 |
. .. .git |
|
57 |
||
58 |
Add file, make changes, commit all:: |
|
59 |
||
60 |
$ emacs Makefile |
|
61 |
... C-x C-c |
|
62 |
$ emacs app.c |
|
63 |
... C-x C-c |
|
64 |
$ git add Makefile app.c |
|
65 |
$ git status |
|
66 |
# On branch master |
|
67 |
# |
|
68 |
# Initial commit |
|
69 |
# |
|
70 |
# Changes to be committed: |
|
71 |
# (use "git rm --cached <file>..." to unstage) |
|
72 |
# |
|
73 |
# new file: Makefile |
|
74 |
# new file: app.c |
|
75 |
# |
|
76 |
||
77 |
or just:: |
|
78 |
||
79 |
$ git add . |
|
80 |
||
81 |
Commit newlly added file:: |
|
82 |
||
83 |
$ git commit |
|
84 |
... Write message log ... |
|
85 |
Created initial commit 2169263: My first commit massage. |
|
86 |
1 files changed, 4 insertions(+), 0 deletions(-) |
|
87 |
create mode 100644 app.c |
|
88 |
||
89 |
Undo tracking added file. |
|
90 |
========================= |
|
91 |
||
92 |
You do:: |
|
93 |
||
94 |
$ git add badfile |
|
95 |
$ git status |
|
96 |
# On branch master |
|
97 |
# Changes to be committed: |
|
98 |
# (use "git reset HEAD <file>..." to unstage) |
|
99 |
# |
|
100 |
# new file: badfile |
|
101 |
# |
|
102 |
||
103 |
To stop tracking badfile do:: |
|
104 |
||
105 |
$ git rm --cached badfile |
|
106 |
$ git status |
|
107 |
# On branch master |
|
108 |
# Untracked files: |
|
109 |
# (use "git add <file>..." to include in what will be committed) |
|
110 |
# |
|
111 |
# file |
|
112 |
nothing added to commit but untracked files present (use "git add" to track) |
|
113 |
||
114 |
or:: |
|
115 |
||
116 |
$ git reset badfile |
|
117 |
||
118 |
Doing changes. |
|
119 |
============== |
|
120 |
:: |
|
121 |
||
122 |
$ printf "clean:\n<TAB>rm $(wildcard *.o)\n" >>Makefile |
|
123 |
$ git diff |
|
124 |
diff --git a/Makefile b/Makefile |
|
125 |
index e84f7e9..cd2438a 100644 |
|
126 |
--- a/Makefile |
|
127 |
+++ b/Makefile |
|
128 |
@@ -1,2 +1,5 @@ |
|
129 |
all: |
|
130 |
@echo XXX |
|
131 |
exit 1 |
|
132 |
+ |
|
133 |
+clean: |
|
134 |
+ rm -f *.o |
|
135 |
$ git add Makefile |
|
136 |
$ git commit -m "Added clean target." |
|
137 |
Created commit 11272b9: Added clean target. |
|
138 |
1 files changed, 1 insertions(+), 0 deletions(-) |
|
139 |
create mode 100644 file |
|
140 |
||
141 |
or just:: |
|
142 |
||
143 |
$ git commit -a -m "Added clean target." |
|
144 |
||
145 |
git analog of 'hg incoming'. |
|
146 |
============================ |
|
147 |
||
148 |
git does not directly support such feature. You can emulate it by:: |
|
149 |
||
150 |
$ git fetch |
|
151 |
$ git log master..origin/master # or just '..origin/master' |
|
152 |
||
153 |
By previous commands you grab changes from remote server! You can apply them:: |
|
154 |
||
155 |
TODO |
|
156 |
$ git merge |
|
157 |
||
158 |
git analog of 'hg outgoing'. |
|
159 |
============================ |
|
160 |
||
161 |
git does not directly support such feature. You can emulate it by:: |
|
162 |
||
163 |
$ git fetch |
|
164 |
$ git log origin/master..master # or just 'origin/master..' |
|
165 |
||
1650
a48c3c61d0f9
git analog of 'hg glog'.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1641
diff
changeset
|
166 |
git analog of 'hg glog'. |
a48c3c61d0f9
git analog of 'hg glog'.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1641
diff
changeset
|
167 |
======================== |
a48c3c61d0f9
git analog of 'hg glog'.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1641
diff
changeset
|
168 |
:: |
a48c3c61d0f9
git analog of 'hg glog'.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1641
diff
changeset
|
169 |
|
a48c3c61d0f9
git analog of 'hg glog'.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1641
diff
changeset
|
170 |
$ git log --all --graph |
a48c3c61d0f9
git analog of 'hg glog'.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1641
diff
changeset
|
171 |
|
a48c3c61d0f9
git analog of 'hg glog'.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1641
diff
changeset
|
172 |
Add alias:: |
a48c3c61d0f9
git analog of 'hg glog'.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1641
diff
changeset
|
173 |
|
a48c3c61d0f9
git analog of 'hg glog'.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1641
diff
changeset
|
174 |
[alias] |
a48c3c61d0f9
git analog of 'hg glog'.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1641
diff
changeset
|
175 |
glog = log --all --graph |
a48c3c61d0f9
git analog of 'hg glog'.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1641
diff
changeset
|
176 |
|
1651
c77807176b36
Git analog of 'hg rollback'
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1650
diff
changeset
|
177 |
Git analog of 'hg rollback'. |
c77807176b36
Git analog of 'hg rollback'
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1650
diff
changeset
|
178 |
============================ |
c77807176b36
Git analog of 'hg rollback'
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1650
diff
changeset
|
179 |
|
c77807176b36
Git analog of 'hg rollback'
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1650
diff
changeset
|
180 |
To edit commit message of last commit:: |
c77807176b36
Git analog of 'hg rollback'
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1650
diff
changeset
|
181 |
|
c77807176b36
Git analog of 'hg rollback'
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1650
diff
changeset
|
182 |
$ git commit --amend -m "$MSG" |
c77807176b36
Git analog of 'hg rollback'
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1650
diff
changeset
|
183 |
|
c77807176b36
Git analog of 'hg rollback'
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1650
diff
changeset
|
184 |
To edit messages of old commits starting from ``$REV``:: |
c77807176b36
Git analog of 'hg rollback'
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1650
diff
changeset
|
185 |
|
c77807176b36
Git analog of 'hg rollback'
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1650
diff
changeset
|
186 |
$ git rebase -i $REV |
c77807176b36
Git analog of 'hg rollback'
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1650
diff
changeset
|
187 |
|
1002 | 188 |
Debug git network operation. |
189 |
============================ |
|
190 |
||
191 |
Git uses libcurl for network operation:: |
|
192 |
||
193 |
$ export GIT_CURL_VERBOSE=1 |
|
194 |
$ git ... |
|
195 |
||
1076
9b2eb3c96d84
Push new repo to remote.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1032
diff
changeset
|
196 |
Push new repo to remote. |
9b2eb3c96d84
Push new repo to remote.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1032
diff
changeset
|
197 |
======================== |
9b2eb3c96d84
Push new repo to remote.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1032
diff
changeset
|
198 |
:: |
9b2eb3c96d84
Push new repo to remote.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1032
diff
changeset
|
199 |
|
9b2eb3c96d84
Push new repo to remote.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1032
diff
changeset
|
200 |
$ mkdir $REPO |
9b2eb3c96d84
Push new repo to remote.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1032
diff
changeset
|
201 |
$ cd $REPO |
9b2eb3c96d84
Push new repo to remote.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1032
diff
changeset
|
202 |
$ git init |
9b2eb3c96d84
Push new repo to remote.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1032
diff
changeset
|
203 |
$ git add . |
9b2eb3c96d84
Push new repo to remote.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1032
diff
changeset
|
204 |
$ git commit -m "Initial commit" |
9b2eb3c96d84
Push new repo to remote.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1032
diff
changeset
|
205 |
$ git remote add origin https://$USER:$PASS@$HOST/$REPO |
9b2eb3c96d84
Push new repo to remote.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1032
diff
changeset
|
206 |
$ git push -u origin master |
9b2eb3c96d84
Push new repo to remote.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1032
diff
changeset
|
207 |
|
1641
04e215a475e0
Show heads in branch.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
208 |
Show heads in branch. |
04e215a475e0
Show heads in branch.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
209 |
===================== |
04e215a475e0
Show heads in branch.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
210 |
:: |
04e215a475e0
Show heads in branch.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
211 |
|
04e215a475e0
Show heads in branch.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
212 |
$ git show-ref --heads -s |
04e215a475e0
Show heads in branch.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
213 |
|
1089
2c23dfe7517e
Find most recent tag for revision.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1076
diff
changeset
|
214 |
Find most recent tag for revision. |
2c23dfe7517e
Find most recent tag for revision.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1076
diff
changeset
|
215 |
================================== |
2c23dfe7517e
Find most recent tag for revision.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1076
diff
changeset
|
216 |
:: |
2c23dfe7517e
Find most recent tag for revision.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1076
diff
changeset
|
217 |
|
2c23dfe7517e
Find most recent tag for revision.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1076
diff
changeset
|
218 |
$ git describe $REV |
2c23dfe7517e
Find most recent tag for revision.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1076
diff
changeset
|
219 |
|
1714
eed8cfffa44e
List tags with dates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1651
diff
changeset
|
220 |
List tags with dates. |
eed8cfffa44e
List tags with dates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1651
diff
changeset
|
221 |
===================== |
eed8cfffa44e
List tags with dates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1651
diff
changeset
|
222 |
:: |
eed8cfffa44e
List tags with dates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1651
diff
changeset
|
223 |
|
eed8cfffa44e
List tags with dates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1651
diff
changeset
|
224 |
$ git log --tags --simplify-by-decoration --pretty="format:%ci %d" |
eed8cfffa44e
List tags with dates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1651
diff
changeset
|
225 |
|
eed8cfffa44e
List tags with dates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1651
diff
changeset
|
226 |
Update to date. |
eed8cfffa44e
List tags with dates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1651
diff
changeset
|
227 |
=============== |
eed8cfffa44e
List tags with dates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1651
diff
changeset
|
228 |
:: |
eed8cfffa44e
List tags with dates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1651
diff
changeset
|
229 |
|
eed8cfffa44e
List tags with dates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1651
diff
changeset
|
230 |
$ git checkout 'master@{1979-02-26}' |
eed8cfffa44e
List tags with dates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1651
diff
changeset
|
231 |
$ git checkout 'master@{1979-02-26 18:30:00}' |
eed8cfffa44e
List tags with dates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1651
diff
changeset
|
232 |
|
1002 | 233 |
Using git to work with SVN offline. |
234 |
=================================== |
|
235 |
||
236 |
Prepare SVN and git utilities:: |
|
237 |
||
238 |
$ sudo apt-get svn git-core git-svn |
|
239 |
||
240 |
Making SVN repo:: |
|
241 |
||
242 |
$ cd $HOME/tmp |
|
243 |
$ svnadmin create svn-repo |
|
244 |
$ svn co file://$HOME/tmp/svn-repo svn-devel |
|
245 |
$ cd svn-devel |
|
246 |
$ mkdir tags trunk branches |
|
247 |
$ svn add * |
|
248 |
A branches |
|
249 |
A tags |
|
250 |
A trunk |
|
251 |
$ cd trunk/ |
|
252 |
$ printf "all:\n echo XXX\n" >Makefile |
|
253 |
$ printf "int main() {return 0;}" >main.c |
|
254 |
$ svn add * |
|
255 |
$ cd .. |
|
256 |
$ svn st |
|
257 |
A trunk |
|
258 |
A trunk/main.c |
|
259 |
A trunk/Makefile |
|
260 |
A branches |
|
261 |
A tags |
|
262 |
$ svn ci -m init |
|
263 |
Adding branches |
|
264 |
Adding tags |
|
265 |
Adding trunk |
|
266 |
Adding trunk/Makefile |
|
267 |
Adding trunk/main.c |
|
268 |
Transmitting file data .. |
|
269 |
$ svn cp -m v0.0 file://$HOME/tmp/svn/trunk file://$HOME/tmp/svn/tags/v0.0 |
|
270 |
$ svn cp -m v0.1 file://$HOME/tmp/svn/trunk file://$HOME/tmp/svn/branches/v0.1 |
|
271 |
||
272 |
Moving SVN changset to git repo:: |
|
273 |
||
274 |
$ cd $HOME/tmp |
|
275 |
$ git svn init file://$HOME/tmp/svn git-repo |
|
276 |
$ ls -a |
|
277 |
. .. .git |
|
278 |
$ git svn fetch |
|
279 |
A trunk/main.c |
|
280 |
A trunk/Makefile |
|
281 |
W: +empty_dir: branches |
|
282 |
W: +empty_dir: tags |
|
283 |
r1 = 52ccd9882979dd53ec198dbac108783ec660410f (git-svn) |
|
284 |
A tags/v0.0/main.c |
|
285 |
A tags/v0.0/Makefile |
|
286 |
r2 = 8ec8a772bb6f37ace56b3649066dc84e481ed427 (git-svn) |
|
287 |
M trunk/Makefile |
|
288 |
r3 = 2c169ff409ed504dd6a092b1e302beb3fd94871e (git-svn) |
|
289 |
A branches/v0.1/main.c |
|
290 |
A branches/v0.1/Makefile |
|
291 |
r4 = e68d76f4ba6beea4b9059c1884c1f38ce10831a7 (git-svn) |
|
292 |
M trunk/Makefile |
|
293 |
r5 = cdde63974454b13ac53f2eeb201aa76c49fd875c (git-svn) |
|
294 |
Checked out HEAD: |
|
295 |
file:///home/sasha/tmp/svn r5 |
|
296 |
||
297 |
or (in old git version):: |
|
298 |
||
299 |
$ git svn clone file://$HOME/tmp/svn git-repo |
|
300 |
||
301 |
Making changes in svn:: |
|
302 |
||
303 |
$ cd $HOME/tmp/svn-devel/trunk |
|
304 |
$ echo ".PHONY: clean" >>Makefile |
|
305 |
$ svn ci -m "Added clean to phony." |
|
306 |
Sending trunk/Makefile |
|
307 |
Transmitting file data . |
|
308 |
Committed revision 6. |
|
309 |
||
310 |
Making committed in git:: |
|
311 |
||
312 |
$ cd $HOME/tmp/git-repo/trunk |
|
313 |
$ echo ".PHONY: all" >>Makefile |
|
314 |
$ echo "int foo(int x) {return x+x;}" >>main.c |
|
315 |
$ git status |
|
316 |
# On branch master |
|
317 |
# Changed but not updated: |
|
318 |
# (use "git add <file>..." to update what will be committed) |
|
319 |
# |
|
320 |
# modified: Makefile |
|
321 |
# modified: main.c |
|
322 |
# |
|
323 |
no changes added to commit (use "git add" and/or "git commit -a") |
|
324 |
$ git commit -a -m "Bug fixed." |
|
325 |
Created commit 222d399: Bug fixed. |
|
326 |
2 files changed, 2 insertions(+), 0 deletions(-) |
|
327 |
||
328 |
Getting changes from SVN to git:: |
|
329 |
||
330 |
$ git svn rebase |
|
331 |
M trunk/Makefile |
|
332 |
r6 = 8165e9bfb38e9df09a7313d19606ec227629b670 (git-svn) |
|
333 |
First, rewinding head to replay your work on top of it... |
|
334 |
Applying Bug fixed. |
|
335 |
error: patch failed: trunk/Makefile:6 |
|
336 |
error: trunk/Makefile: patch does not apply |
|
337 |
Using index info to reconstruct a base tree... |
|
338 |
Falling back to patching base and 3-way merge... |
|
339 |
Auto-merged trunk/Makefile |
|
340 |
CONFLICT (content): Merge conflict in trunk/Makefile |
|
341 |
Failed to merge in the changes. |
|
342 |
Patch failed at 0001. |
|
343 |
||
344 |
When you have resolved this problem run "git rebase --continue". |
|
345 |
If you would prefer to skip this patch, instead run "git rebase --skip". |
|
346 |
To restore the original branch and stop rebasing run "git rebase --abort". |
|
347 |
||
348 |
rebase refs/remotes/git-svn: command returned error: 1 |
|
349 |
$ git add Makefile |
|
350 |
$ git rebase --continue |
|
351 |
Applying Bug fixed. |
|
352 |
||
353 |
and return all from git to SVN:: |
|
354 |
||
355 |
$ git svn dcommit |
|
356 |
Committing to file:///home/sasha/tmp/svn ... |
|
357 |
M trunk/Makefile |
|
358 |
M trunk/main.c |
|
359 |
Committed r7 |
|
360 |
M trunk/main.c |
|
361 |
M trunk/Makefile |
|
362 |
r7 = 68e782c8d06635f2db4dd69b9ca8599f99da22e2 (git-svn) |
|
363 |
No changes between current HEAD and refs/remotes/git-svn |
|
364 |
Resetting to the latest refs/remotes/git-svn |
|
365 |
||
366 |
See what going to SVN repo:: |
|
367 |
||
368 |
$ cd $HOME/tmp/svn-devel/trunk |
|
369 |
$ svn diff -r BASE:HEAD |
|
370 |
Index: Makefile |
|
371 |
=================================================================== |
|
372 |
--- Makefile (working copy) |
|
373 |
+++ Makefile (revision 7) |
|
374 |
@@ -6,4 +6,4 @@ |
|
375 |
.o: .c |
|
376 |
$(CC) $(CFLAGS) -c -o $@ $< |
|
377 |
||
378 |
-.PHONY: clean |
|
379 |
+.PHONY: all clean |
|
380 |
Index: main.c |
|
381 |
=================================================================== |
|
382 |
--- main.c (working copy) |
|
383 |
+++ main.c (revision 7) |
|
384 |
@@ -2,3 +2,4 @@ |
|
385 |
{ |
|
386 |
return 0; |
|
387 |
} |
|
388 |
+int foo(int x) {return x+x;} |
|
389 |
$ svn up |
|
390 |
U Makefile |
|
391 |
U main.c |
|
392 |
Updated to revision 7. |
|
393 |
||
394 |
gitk. |
|
395 |
===== |
|
396 |
||
397 |
gitk - The git repository browser. See gitk(1). |
|
398 |
||
399 |
Installing:: |
|
400 |
||
401 |
$ sudo apt-get instal gitk |
|
402 |
||
403 |
Using:: |
|
404 |
||
405 |
$ cd /path/to/git-repo |
|
406 |
$ gitk |
|
407 |