wiki.xw3.org

Welcome to the xw3 Wiki! Powered by hanez

User Tools

Site Tools


git

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
git [2024-10-22] hanezgit [2025-03-18] (current) hanez
Line 1: Line 1:
 ====== Git ====== ====== Git ======
 +
 +===== Add tag =====
 +
 +<code shell>git tag TAG</code>
 +
 +==== Commit a tag ====
 +
 +<code>git push origin TAG</code>
 +
 +==== Commit all tags ====
 +
 +<code>git push origin --tags</code>
 +
 +Source: [[https://stackoverflow.com/questions/18216991/create-a-tag-in-a-github-repository]]
  
 ===== Clone a specific tag ===== ===== Clone a specific tag =====
  
 <code bash>git clone --depth 1 --branch <tag_name> <repo_url></code> <code bash>git clone --depth 1 --branch <tag_name> <repo_url></code>
- 
  
 ===== 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 84: Line 97:
  
 <code>git filter-branch --force --index-filter "git rm -r --cached --ignore-unmatch PATH-TO-YOUR-FILE-WITH-SENSITIVE-DATA" --prune-empty --tag-name-filter cat -- --all <code>git filter-branch --force --index-filter "git rm -r --cached --ignore-unmatch PATH-TO-YOUR-FILE-WITH-SENSITIVE-DATA" --prune-empty --tag-name-filter cat -- --all
-  git push --force --verbose --dry-run +git push --force --verbose --dry-run 
-  git push --force</code>+git push --force</code>
  
  
Line 95: Line 108:
   * [[https://stackoverflow.com/questions/1425892/how-do-you-merge-two-git-repositories]]   * [[https://stackoverflow.com/questions/1425892/how-do-you-merge-two-git-repositories]]
   * [[https://github.com/apenwarr/git-subtree]]   * [[https://github.com/apenwarr/git-subtree]]
- 
git.1729640909.txt.gz · Last modified: 2024-10-22 by hanez