This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
|
сервис_git [2026/02/25 22:11] val [Удаление чувствительных данных (паролей, ключей) из репозитория] |
сервис_git [2026/02/25 22:17] (current) val [Удаление чувствительных данных (паролей, ключей) из репозитория] |
||
|---|---|---|---|
| Line 331: | Line 331: | ||
| server:/tmp/openvpn1# git remote -v | server:/tmp/openvpn1# git remote -v | ||
| server:/tmp/openvpn1# git remote add origin https://server.corpX.un/student/openvpn1.git | server:/tmp/openvpn1# git remote add origin https://server.corpX.un/student/openvpn1.git | ||
| + | </code> | ||
| + | Settings -> Repository -> Protected Branches -> Allowed to force push: ON | ||
| + | <code> | ||
| server:/tmp/openvpn1# git push --force --all | server:/tmp/openvpn1# git push --force --all | ||
| server:/tmp/openvpn1# git push --force --tags | server:/tmp/openvpn1# git push --force --tags | ||
| </code> | </code> | ||