Share
Sign In
🚯

git bfg 민감한 데이터 삭제하기

실수로 민감한 데이터가 깃 커밋 기록에 담긴 상황에서 커밋 기록은 유지한 채로 특정 민감한 정보를 지우는 방법을 알아보자.
1.
install bfg
brew install bfg
리눅스가 아닌경우 아래 깃헙 주소에서 clone
2.
replace.txt 파일 작성
# replace.txt # PASSWORD # Replace string 'PASSWORD1' with '***REMOVED***' (default) # PASSWORD2==>examplePass # Replace with 'examplePass' instead # PASSWORD3==> # Replace with the empty string # regex:password=\w+==>password= # Replace, using a regex # regex:\r(\n)==>$1 # Replace Windows newlines with Unix
3.
실행
bfg --replace-text replace.txt git reflog expire --expire=now --all git gc --prune=now --aggressive git push <romote_name> <branch_name> -f
실수로 민감한 데이터가 깃 커밋 기록에 담긴 상황에서 커밋 기록은 유지한 채로 특정 민감한 정보를 지우는 방법을 알아보자.
1.
install bfg
brew install bfg
리눅스가 아닌경우 아래 깃헙 주소에서 clone
2.
replace.txt 파일 작성
# replace.txt # PASSWORD # Replace string 'PASSWORD1' with '***REMOVED***' (default) # PASSWORD2==>examplePass # Replace with 'examplePass' instead # PASSWORD3==> # Replace with the empty string # regex:password=\w+==>password= # Replace, using a regex # regex:\r(\n)==>$1 # Replace Windows newlines with Unix
3.
실행
bfg --replace-text replace.txt git reflog expire --expire=now --all git gc --prune=now --aggressive git push <romote_name> <branch_name> -f
실수로 민감한 데이터가 깃 커밋 기록에 담긴 상황에서 커밋 기록은 유지한 채로 특정 민감한 정보를 지우는 방법을 알아보자.
1.
install bfg
brew install bfg
리눅스가 아닌경우 아래 깃헙 주소에서 clone
2.
replace.txt 파일 작성
# replace.txt # PASSWORD # Replace string 'PASSWORD1' with '***REMOVED***' (default) # PASSWORD2==>examplePass # Replace with 'examplePass' instead # PASSWORD3==> # Replace with the empty string # regex:password=\w+==>password= # Replace, using a regex # regex:\r(\n)==>$1 # Replace Windows newlines with Unix
3.
실행
bfg --replace-text replace.txt git reflog expire --expire=now --all git gc --prune=now --aggressive git push <romote_name> <branch_name> -f
실수로 민감한 데이터가 깃 커밋 기록에 담긴 상황에서 커밋 기록은 유지한 채로 특정 민감한 정보를 지우는 방법을 알아보자.
1.
install bfg
brew install bfg
리눅스가 아닌경우 아래 깃헙 주소에서 clone
2.
replace.txt 파일 작성
# replace.txt # PASSWORD # Replace string 'PASSWORD1' with '***REMOVED***' (default) # PASSWORD2==>examplePass # Replace with 'examplePass' instead # PASSWORD3==> # Replace with the empty string # regex:password=\w+==>password= # Replace, using a regex # regex:\r(\n)==>$1 # Replace Windows newlines with Unix
3.
실행
bfg --replace-text replace.txt git reflog expire --expire=now --all git gc --prune=now --aggressive git push <romote_name> <branch_name> -f
실수로 민감한 데이터가 깃 커밋 기록에 담긴 상황에서 커밋 기록은 유지한 채로 특정 민감한 정보를 지우는 방법을 알아보자.
1.
install bfg
brew install bfg
리눅스가 아닌경우 아래 깃헙 주소에서 clone
2.
replace.txt 파일 작성
# replace.txt # PASSWORD # Replace string 'PASSWORD1' with '***REMOVED***' (default) # PASSWORD2==>examplePass # Replace with 'examplePass' instead # PASSWORD3==> # Replace with the empty string # regex:password=\w+==>password= # Replace, using a regex # regex:\r(\n)==>$1 # Replace Windows newlines with Unix
3.
실행
bfg --replace-text replace.txt git reflog expire --expire=now --all git gc --prune=now --aggressive git push <romote_name> <branch_name> -f
실수로 민감한 데이터가 깃 커밋 기록에 담긴 상황에서 커밋 기록은 유지한 채로 특정 민감한 정보를 지우는 방법을 알아보자.
1.
install bfg
brew install bfg
리눅스가 아닌경우 아래 깃헙 주소에서 clone
2.
replace.txt 파일 작성
# replace.txt # PASSWORD # Replace string 'PASSWORD1' with '***REMOVED***' (default) # PASSWORD2==>examplePass # Replace with 'examplePass' instead # PASSWORD3==> # Replace with the empty string # regex:password=\w+==>password= # Replace, using a regex # regex:\r(\n)==>$1 # Replace Windows newlines with Unix
3.
실행
bfg --replace-text replace.txt git reflog expire --expire=now --all git gc --prune=now --aggressive git push <romote_name> <branch_name> -f
실수로 민감한 데이터가 깃 커밋 기록에 담긴 상황에서 커밋 기록은 유지한 채로 특정 민감한 정보를 지우는 방법을 알아보자.
1.
install bfg
brew install bfg
리눅스가 아닌경우 아래 깃헙 주소에서 clone
2.
replace.txt 파일 작성
# replace.txt # PASSWORD # Replace string 'PASSWORD1' with '***REMOVED***' (default) # PASSWORD2==>examplePass # Replace with 'examplePass' instead # PASSWORD3==> # Replace with the empty string # regex:password=\w+==>password= # Replace, using a regex # regex:\r(\n)==>$1 # Replace Windows newlines with Unix
3.
실행
bfg --replace-text replace.txt git reflog expire --expire=now --all git gc --prune=now --aggressive git push <romote_name> <branch_name> -f
실수로 민감한 데이터가 깃 커밋 기록에 담긴 상황에서 커밋 기록은 유지한 채로 특정 민감한 정보를 지우는 방법을 알아보자.
1.
install bfg
brew install bfg
리눅스가 아닌경우 아래 깃헙 주소에서 clone
2.
replace.txt 파일 작성
# replace.txt # PASSWORD # Replace string 'PASSWORD1' with '***REMOVED***' (default) # PASSWORD2==>examplePass # Replace with 'examplePass' instead # PASSWORD3==> # Replace with the empty string # regex:password=\w+==>password= # Replace, using a regex # regex:\r(\n)==>$1 # Replace Windows newlines with Unix
3.
실행
bfg --replace-text replace.txt git reflog expire --expire=now --all git gc --prune=now --aggressive git push <romote_name> <branch_name> -f
실수로 민감한 데이터가 깃 커밋 기록에 담긴 상황에서 커밋 기록은 유지한 채로 특정 민감한 정보를 지우는 방법을 알아보자.
1.
install bfg
brew install bfg
리눅스가 아닌경우 아래 깃헙 주소에서 clone
2.
replace.txt 파일 작성
# replace.txt # PASSWORD # Replace string 'PASSWORD1' with '***REMOVED***' (default) # PASSWORD2==>examplePass # Replace with 'examplePass' instead # PASSWORD3==> # Replace with the empty string # regex:password=\w+==>password= # Replace, using a regex # regex:\r(\n)==>$1 # Replace Windows newlines with Unix
3.
실행
bfg --replace-text replace.txt git reflog expire --expire=now --all git gc --prune=now --aggressive git push <romote_name> <branch_name> -f
실수로 민감한 데이터가 깃 커밋 기록에 담긴 상황에서 커밋 기록은 유지한 채로 특정 민감한 정보를 지우는 방법을 알아보자.
1.
install bfg
brew install bfg
리눅스가 아닌경우 아래 깃헙 주소에서 clone
2.
replace.txt 파일 작성
# replace.txt # PASSWORD # Replace string 'PASSWORD1' with '***REMOVED***' (default) # PASSWORD2==>examplePass # Replace with 'examplePass' instead # PASSWORD3==> # Replace with the empty string # regex:password=\w+==>password= # Replace, using a regex # regex:\r(\n)==>$1 # Replace Windows newlines with Unix
3.
실행
bfg --replace-text replace.txt git reflog expire --expire=now --all git gc --prune=now --aggressive git push <romote_name> <branch_name> -f
실수로 민감한 데이터가 깃 커밋 기록에 담긴 상황에서 커밋 기록은 유지한 채로 특정 민감한 정보를 지우는 방법을 알아보자.
1.
install bfg
brew install bfg
리눅스가 아닌경우 아래 깃헙 주소에서 clone
2.
replace.txt 파일 작성
# replace.txt # PASSWORD # Replace string 'PASSWORD1' with '***REMOVED***' (default) # PASSWORD2==>examplePass # Replace with 'examplePass' instead # PASSWORD3==> # Replace with the empty string # regex:password=\w+==>password= # Replace, using a regex # regex:\r(\n)==>$1 # Replace Windows newlines with Unix
3.
실행
bfg --replace-text replace.txt git reflog expire --expire=now --all git gc --prune=now --aggressive git push <romote_name> <branch_name> -f
실수로 민감한 데이터가 깃 커밋 기록에 담긴 상황에서 커밋 기록은 유지한 채로 특정 민감한 정보를 지우는 방법을 알아보자.
1.
install bfg
brew install bfg
리눅스가 아닌경우 아래 깃헙 주소에서 clone
2.
replace.txt 파일 작성
# replace.txt # PASSWORD # Replace string 'PASSWORD1' with '***REMOVED***' (default) # PASSWORD2==>examplePass # Replace with 'examplePass' instead # PASSWORD3==> # Replace with the empty string # regex:password=\w+==>password= # Replace, using a regex # regex:\r(\n)==>$1 # Replace Windows newlines with Unix
3.
실행
bfg --replace-text replace.txt git reflog expire --expire=now --all git gc --prune=now --aggressive git push <romote_name> <branch_name> -f
실수로 민감한 데이터가 깃 커밋 기록에 담긴 상황에서 커밋 기록은 유지한 채로 특정 민감한 정보를 지우는 방법을 알아보자.
1.
install bfg
brew install bfg
리눅스가 아닌경우 아래 깃헙 주소에서 clone
2.
replace.txt 파일 작성
# replace.txt # PASSWORD # Replace string 'PASSWORD1' with '***REMOVED***' (default) # PASSWORD2==>examplePass # Replace with 'examplePass' instead # PASSWORD3==> # Replace with the empty string # regex:password=\w+==>password= # Replace, using a regex # regex:\r(\n)==>$1 # Replace Windows newlines with Unix
3.
실행
bfg --replace-text replace.txt git reflog expire --expire=now --all git gc --prune=now --aggressive git push <romote_name> <branch_name> -f
실수로 민감한 데이터가 깃 커밋 기록에 담긴 상황에서 커밋 기록은 유지한 채로 특정 민감한 정보를 지우는 방법을 알아보자.
1.
install bfg
brew install bfg
리눅스가 아닌경우 아래 깃헙 주소에서 clone
2.
replace.txt 파일 작성
# replace.txt # PASSWORD # Replace string 'PASSWORD1' with '***REMOVED***' (default) # PASSWORD2==>examplePass # Replace with 'examplePass' instead # PASSWORD3==> # Replace with the empty string # regex:password=\w+==>password= # Replace, using a regex # regex:\r(\n)==>$1 # Replace Windows newlines with Unix
3.
실행
bfg --replace-text replace.txt git reflog expire --expire=now --all git gc --prune=now --aggressive git push <romote_name> <branch_name> -f
실수로 민감한 데이터가 깃 커밋 기록에 담긴 상황에서 커밋 기록은 유지한 채로 특정 민감한 정보를 지우는 방법을 알아보자.
1.
install bfg
brew install bfg
리눅스가 아닌경우 아래 깃헙 주소에서 clone
2.
replace.txt 파일 작성
# replace.txt # PASSWORD # Replace string 'PASSWORD1' with '***REMOVED***' (default) # PASSWORD2==>examplePass # Replace with 'examplePass' instead # PASSWORD3==> # Replace with the empty string # regex:password=\w+==>password= # Replace, using a regex # regex:\r(\n)==>$1 # Replace Windows newlines with Unix
3.
실행
bfg --replace-text replace.txt git reflog expire --expire=now --all git gc --prune=now --aggressive git push <romote_name> <branch_name> -f
실수로 민감한 데이터가 깃 커밋 기록에 담긴 상황에서 커밋 기록은 유지한 채로 특정 민감한 정보를 지우는 방법을 알아보자.
1.
install bfg
brew install bfg
리눅스가 아닌경우 아래 깃헙 주소에서 clone
2.
replace.txt 파일 작성
# replace.txt # PASSWORD # Replace string 'PASSWORD1' with '***REMOVED***' (default) # PASSWORD2==>examplePass # Replace with 'examplePass' instead # PASSWORD3==> # Replace with the empty string # regex:password=\w+==>password= # Replace, using a regex # regex:\r(\n)==>$1 # Replace Windows newlines with Unix
3.
실행
bfg --replace-text replace.txt git reflog expire --expire=now --all git gc --prune=now --aggressive git push <romote_name> <branch_name> -f
실수로 민감한 데이터가 깃 커밋 기록에 담긴 상황에서 커밋 기록은 유지한 채로 특정 민감한 정보를 지우는 방법을 알아보자.
1.
install bfg
brew install bfg
리눅스가 아닌경우 아래 깃헙 주소에서 clone
2.
replace.txt 파일 작성
# replace.txt # PASSWORD # Replace string 'PASSWORD1' with '***REMOVED***' (default) # PASSWORD2==>examplePass # Replace with 'examplePass' instead # PASSWORD3==> # Replace with the empty string # regex:password=\w+==>password= # Replace, using a regex # regex:\r(\n)==>$1 # Replace Windows newlines with Unix
3.
실행
bfg --replace-text replace.txt git reflog expire --expire=now --all git gc --prune=now --aggressive git push <romote_name> <branch_name> -f
실수로 민감한 데이터가 깃 커밋 기록에 담긴 상황에서 커밋 기록은 유지한 채로 특정 민감한 정보를 지우는 방법을 알아보자.
1.
install bfg
brew install bfg
리눅스가 아닌경우 아래 깃헙 주소에서 clone
2.
replace.txt 파일 작성
# replace.txt # PASSWORD # Replace string 'PASSWORD1' with '***REMOVED***' (default) # PASSWORD2==>examplePass # Replace with 'examplePass' instead # PASSWORD3==> # Replace with the empty string # regex:password=\w+==>password= # Replace, using a regex # regex:\r(\n)==>$1 # Replace Windows newlines with Unix
3.
실행
bfg --replace-text replace.txt git reflog expire --expire=now --all git gc --prune=now --aggressive git push <romote_name> <branch_name> -f
실수로 민감한 데이터가 깃 커밋 기록에 담긴 상황에서 커밋 기록은 유지한 채로 특정 민감한 정보를 지우는 방법을 알아보자.
1.
install bfg
brew install bfg
리눅스가 아닌경우 아래 깃헙 주소에서 clone
2.
replace.txt 파일 작성
# replace.txt # PASSWORD # Replace string 'PASSWORD1' with '***REMOVED***' (default) # PASSWORD2==>examplePass # Replace with 'examplePass' instead # PASSWORD3==> # Replace with the empty string # regex:password=\w+==>password= # Replace, using a regex # regex:\r(\n)==>$1 # Replace Windows newlines with Unix
3.
실행
bfg --replace-text replace.txt git reflog expire --expire=now --all git gc --prune=now --aggressive git push <romote_name> <branch_name> -f
실수로 민감한 데이터가 깃 커밋 기록에 담긴 상황에서 커밋 기록은 유지한 채로 특정 민감한 정보를 지우는 방법을 알아보자.
1.
install bfg
brew install bfg
리눅스가 아닌경우 아래 깃헙 주소에서 clone
2.
replace.txt 파일 작성
# replace.txt # PASSWORD # Replace string 'PASSWORD1' with '***REMOVED***' (default) # PASSWORD2==>examplePass # Replace with 'examplePass' instead # PASSWORD3==> # Replace with the empty string # regex:password=\w+==>password= # Replace, using a regex # regex:\r(\n)==>$1 # Replace Windows newlines with Unix
3.
실행
bfg --replace-text replace.txt git reflog expire --expire=now --all git gc --prune=now --aggressive git push <romote_name> <branch_name> -f
실수로 민감한 데이터가 깃 커밋 기록에 담긴 상황에서 커밋 기록은 유지한 채로 특정 민감한 정보를 지우는 방법을 알아보자.
1.
install bfg
brew install bfg
리눅스가 아닌경우 아래 깃헙 주소에서 clone
2.
replace.txt 파일 작성
# replace.txt # PASSWORD # Replace string 'PASSWORD1' with '***REMOVED***' (default) # PASSWORD2==>examplePass # Replace with 'examplePass' instead # PASSWORD3==> # Replace with the empty string # regex:password=\w+==>password= # Replace, using a regex # regex:\r(\n)==>$1 # Replace Windows newlines with Unix
3.
실행
bfg --replace-text replace.txt git reflog expire --expire=now --all git gc --prune=now --aggressive git push <romote_name> <branch_name> -f
실수로 민감한 데이터가 깃 커밋 기록에 담긴 상황에서 커밋 기록은 유지한 채로 특정 민감한 정보를 지우는 방법을 알아보자.
1.
install bfg
brew install bfg
리눅스가 아닌경우 아래 깃헙 주소에서 clone
2.
replace.txt 파일 작성
# replace.txt # PASSWORD # Replace string 'PASSWORD1' with '***REMOVED***' (default) # PASSWORD2==>examplePass # Replace with 'examplePass' instead # PASSWORD3==> # Replace with the empty string # regex:password=\w+==>password= # Replace, using a regex # regex:\r(\n)==>$1 # Replace Windows newlines with Unix
3.
실행
bfg --replace-text replace.txt git reflog expire --expire=now --all git gc --prune=now --aggressive git push <romote_name> <branch_name> -f