Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Ścieżka do repozytorium
- repo_dir="/path/to/your/repo"
- cd "$repo_dir"
- # Pobranie wszystkich tagów
- git fetch --tags
- # Stworzenie folderu do eksportu tagów
- mkdir -p exported_tags
- # Eksportowanie każdego tagu do osobnego folderu
- for tag in $(git tag); do
- echo "Tworzenie kopii dla tagu: $tag"
- git checkout "tags/$tag"
- mkdir -p "exported_tags/$tag"
- git archive --format=tar HEAD | tar -x -C "exported_tags/$tag"
- done
- echo "Eksport tagów zakończony!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement