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 revision Previous revision
Next revision
Previous revision
сервис_git [2026/02/25 22:00]
val
сервис_git [2026/02/25 22:17] (current)
val [Удаление чувствительных данных (паролей, ключей) из репозитория]
Line 330: Line 330:
  
 server:/​tmp/​openvpn1#​ git remote -v server:/​tmp/​openvpn1#​ git remote -v
-server:/​tmp/​openvpn1#​ git remote add origin https://gitlab.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>​
сервис_git.1772046047.txt.gz · Last modified: 2026/02/25 22:00 by val