/
volodja
/
iridium
Обзор
Документация
Войти
/
volodja
/
iridium
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
develop
script/push-all-git-remotes.sh
18 строк
642 B
volodja
- cmake: update project structure; iridium.cmake for using in external project
15 май 2026, 12:31
15 май 2026, 12:31
6ea1653
Код
Авторство
О чём код?
#!/bin/bash # Получаем список всех удаленных репозиториев remotes=$(git remote) # Определяем текущую ветку current_branch=$(git branch --show-current) if [ -z "$current_branch" ]; then echo "Ошибка: Не удалось определить текущую ветку. Возможно, вы находитесь в состоянии 'detached HEAD'." exit 1 fi # Выполняем push в каждый удаленный репозиторий for remote in $remotes; do echo "Pushing to $remote/$current_branch..." git push $remote $current_branch done