Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
becki:linux:git [2015-08-26 11:29] becki |
becki:linux:git [2025-01-08 10:11] (aktuell) becki |
||
---|---|---|---|
Zeile 11: | Zeile 11: | ||
===== Mercurial Command Comparison == | ===== Mercurial Command Comparison == | ||
+ | See https://www.rath.org/mercurial-for-git-users-and-vice-versa.html to understand the different concepts | ||
See [[hg>wiki/GitConcepts|Mercurial <=> Git Command comparison]] | See [[hg>wiki/GitConcepts|Mercurial <=> Git Command comparison]] | ||
^ hg ^ git ^ comment ^ | ^ hg ^ git ^ comment ^ | ||
+ | | hg backout | git revert | options my differ | | ||
| hg branches | git branch [-a] | | | | hg branches | git branch [-a] | | | ||
| hg commit -m 'msg' | git commit -a -m 'msg' | from trial / alternative: ''git add ...; git commit'' | | | hg commit -m 'msg' | git commit -a -m 'msg' | from trial / alternative: ''git add ...; git commit'' | | ||
Zeile 28: | Zeile 30: | ||
===== Push == | ===== Push == | ||
- | In order to push from repo S to reop T, T must not be on the branch you want to push to (typically master). Therefore create a dummy branch ''git checkout -b dummy'' on. Now you can push to T/master from S | + | In order to push from repo S to reop T, T must not be on the branch you want to push to (typically master). Therefore create a dummy branch ''git checkout -b dummy'' on T. Now you can push to T/master from S |
Alternatively you can turn T into a "bare" repo. | Alternatively you can turn T into a "bare" repo. |