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/03/02 17:21]
val [Удаление чувствительных данных (паролей, ключей) из репозитория]
сервис_git [2026/03/19 14:05] (current)
val [Работа с локальным репозиторием]
Line 32: Line 32:
  
 server:​~/​conf$ git init server:​~/​conf$ git init
 +
 +server:​~/​conf$ cat .gitignore
 +__pycache__/​
  
 server:​~/​conf$ git add . server:​~/​conf$ git add .
Line 45: Line 48:
  
 server:​~/​conf$ git status server:​~/​conf$ git status
 +
 +server:​~/​conf$ ###git restore file1
  
 server:​~/​conf$ git add -v . server:​~/​conf$ git add -v .
Line 303: Line 308:
  
 ===== Поиск чувствительных данных (паролей,​ ключей) в репозитории ===== ===== Поиск чувствительных данных (паролей,​ ключей) в репозитории =====
 +
 +  * [[https://​www.reddit.com/​r/​git/​comments/​o7jaau/​how_to_scan_for_secrets_on_git_repositories/​]]
 <​code>​ <​code>​
 ~/openvpn1# git rev-list --all | while read commit_hash;​ do ~/openvpn1# git rev-list --all | while read commit_hash;​ do
Line 311: Line 318:
 <​code>​ <​code>​
 ~# wget https://​github.com/​trufflesecurity/​trufflehog/​releases/​download/​v3.93.6/​trufflehog_3.93.6_linux_amd64.tar.gz ~# wget https://​github.com/​trufflesecurity/​trufflehog/​releases/​download/​v3.93.6/​trufflehog_3.93.6_linux_amd64.tar.gz
 +
 ~# tar -xvf trufflehog_3.93.6_linux_amd64.tar.gz trufflehog ~# tar -xvf trufflehog_3.93.6_linux_amd64.tar.gz trufflehog
  
 ~# mv trufflehog /​usr/​local/​bin/​ ~# mv trufflehog /​usr/​local/​bin/​
  
-~# cd openvpn1/+~# trufflehog git https://​server.corp13.un:​4443/​student/​openvpn1.git
  
-~#​trufflehog git file://.+~# ###trufflehog git file://openvpn1
 </​code>​ </​code>​
  
сервис_git.1772461296.txt.gz · Last modified: 2026/03/02 17:21 by val