meta data for this page
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
git:start [2017/05/02 09:20] – niziak | git:start [2023/05/30 10:29] (current) – niziak | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== GIT ====== | ||
+ | |||
====== Preparation ====== | ====== Preparation ====== | ||
+ | |||
=== git-email === | === git-email === | ||
<code bash> | <code bash> | ||
Line 6: | Line 9: | ||
git config sendemail.suppressfrom true | git config sendemail.suppressfrom true | ||
</ | </ | ||
+ | |||
+ | === replace github' | ||
+ | NOTE: Github was disabled git protocol. So only '' | ||
+ | |||
+ | <code bash> | ||
+ | git config --global url.https:// | ||
+ | # or | ||
+ | git config --global url.https:// | ||
+ | </ | ||
+ | |||
+ | Keywords: git protocol, '' | ||
+ | |||
+ | === replace github https links === | ||
+ | <code bash>git config --global url.git@github.com: | ||
====== Import HG (mercurial) repo ====== | ====== Import HG (mercurial) repo ====== | ||
Line 16: | Line 33: | ||
====== Usage ====== | ====== Usage ====== | ||
+ | |||
+ | ==== fetch moved tags ==== | ||
+ | <code bash>git fetch origin --tags --force</ | ||
==== Undo a commit ==== | ==== Undo a commit ==== |