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 [2018/11/08 13:43] – niziak | git:start [2024/12/11 12:24] (current) – niziak | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== GIT ====== | ||
+ | |||
====== Preparation ====== | ====== Preparation ====== | ||
+ | |||
+ | ===== bash completion ===== | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | Package '' | ||
+ | < | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | <file bash ~/ | ||
+ | . / | ||
+ | . / | ||
+ | |||
+ | if [ " | ||
+ | # | ||
+ | PS1=' | ||
+ | else | ||
+ | # | ||
+ | PS1=' | ||
+ | fi | ||
+ | </ | ||
+ | |||
+ | |||
=== git-email === | === git-email === | ||
Line 7: | Line 35: | ||
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 === | === replace github https links === | ||
Line 20: | Line 59: | ||
====== Usage ====== | ====== Usage ====== | ||
+ | |||
+ | ==== fetch moved tags ==== | ||
+ | <code bash>git fetch origin --tags --force</ | ||
==== Undo a commit ==== | ==== Undo a commit ==== |