git
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
git [2024-10-05] – hanez | git [2025-03-18] (current) – hanez | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Git ====== | ====== Git ====== | ||
+ | |||
+ | ===== Add tag ===== | ||
+ | |||
+ | <code shell> | ||
+ | |||
+ | ==== Commit a tag ==== | ||
+ | |||
+ | < | ||
+ | |||
+ | ==== Commit all tags ==== | ||
+ | |||
+ | < | ||
+ | |||
+ | Source: [[https:// | ||
===== Clone a specific tag ===== | ===== Clone a specific tag ===== | ||
<code bash>git clone --depth 1 --branch < | <code bash>git clone --depth 1 --branch < | ||
- | |||
===== Specify the private SSH-key to use when executing a Git command: ===== | ===== Specify the private SSH-key to use when executing a Git command: ===== | ||
Line 81: | Line 94: | ||
Source: [[https:// | Source: [[https:// | ||
+ | ===== Remove sensitive files and their commits from Git history ===== | ||
+ | |||
+ | < | ||
+ | git push --force --verbose --dry-run | ||
+ | git push --force</ | ||
+ | |||
+ | |||
+ | Source: [[https:// | ||
+ | |||
+ | ===== How to merge two or multiple git repositories into one ===== | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// |
git.1728095034.txt.gz · Last modified: 2024-10-05 by hanez