Usunięcie taga ze zdalnego repozytorium:
git push --delete origin v.2.5.16
Tagowanie starszego commita:
git tag -a v2.5.16 5bf6091 -m "Wersja 2.5.16"
git tag -a v2.6.21 1f958cb -m "Wersja 2.6.21"
git tag -a v2.6.2 5f6097d -m "Wersja 2.6.2"
Usunięcie taga z lokalnego repozytorium:
git tag --delete v.2.5.16
Push all local tags to remote repo:
git push origin --tags
Usunięcie wszystkich tagów z repozytorium lokalnego:
git tag -l | xargs git tag -d
Pobranie listy tagów z repozytorium zdalnego:
git fetch
Zwraca bieżącą nazwę taga:
git describe --tags --abbrev=0
push do konkretnej gałęzi:
git push origin master
git push origin test
git push origin production
Pobranie zmian ze śledzonej gałęzi:
git pull
a jeśli gałąź test nie jest śledzona:
git pull <remote> <branch>
git pull origin test
Śledzenie zmian wybranej gałęzi:
git branch --set-upstream-to=origin/test test
Usunięcie wybranej gałęzi:
git branch -D test
git push --delete origin test