equal
deleted
inserted
replaced
204 git does not directly support such feature. You can emulate it by:: |
204 git does not directly support such feature. You can emulate it by:: |
205 |
205 |
206 $ git fetch |
206 $ git fetch |
207 $ git log origin/master..master # or just 'origin/master..' |
207 $ git log origin/master..master # or just 'origin/master..' |
208 |
208 |
209 git analog of 'hg glog'. |
209 git analog of 'hg glog' |
210 ======================== |
210 ======================= |
211 :: |
211 :: |
212 |
212 |
213 $ git log --all --graph |
213 $ git log --all --graph |
|
214 $ git log --all --graph --oneline |
|
215 $ git log --all --graph --oneline --decorate |
214 |
216 |
215 Add alias:: |
217 Add alias:: |
216 |
218 |
217 [alias] |
219 [alias] |
218 glog = log --all --graph |
220 glog = log --all --graph |
226 |
228 |
227 To edit messages of old commits starting from ``$REV``:: |
229 To edit messages of old commits starting from ``$REV``:: |
228 |
230 |
229 $ git rebase -i $REV |
231 $ git rebase -i $REV |
230 |
232 |
231 Git analog of 'hg root'. |
233 Git analog of 'hg root' |
232 ======================== |
234 ======================= |
233 :: |
235 :: |
234 |
236 |
235 $ git rev-parse --show-toplevel |
237 $ git rev-parse --show-toplevel |
236 |
238 |
237 Debug git network operation. |
239 Making local branch tracking remote |
238 ============================ |
240 =================================== |
|
241 :: |
|
242 |
|
243 $ git branch -u upstream/foo |
|
244 $ git branch -u upstream/foo foo |
|
245 |
|
246 $ git branch --set-upstream-to=upstream/foo |
|
247 $ git branch --set-upstream-to=upstream/foo foo |
|
248 |
|
249 Showing what and how local branches are tracked:: |
|
250 |
|
251 $ git branch -vv |
|
252 $ cat .git/gitconfig |
|
253 |
|
254 Showing what remote branches tracked:: |
|
255 |
|
256 $ git remote show $remote |
|
257 |
|
258 Debug git network operation |
|
259 =========================== |
239 |
260 |
240 Git uses libcurl for network operation:: |
261 Git uses libcurl for network operation:: |
241 |
262 |
242 $ export GIT_CURL_VERBOSE=1 |
263 $ export GIT_CURL_VERBOSE=1 |
243 $ git ... |
264 $ git ... |