본문 바로가기

Programing/Git7

[Git] non-fast-forward 에러 git push 할 때 발생하는 Error. (1) git pull origin master --allow-unrelated-histories (2) git pull [remote] [branch] => git push origin master https://blue-boy.tistory.com/199 2022. 6. 18.
[Git] 특정 File 업로드 방법 # 작업 파일 목록 확인 git status # 기존 파일 변경 내역 확인 git diff # 목록 재확인 git status # 원하는 파일 업로드(1) git add [경로 & 파일명] # 업로드(2) git commit -m "[msg]" file1 file2 https://stackoverflow.com/questions/13479763/how-to-push-a-single-file-in-a-subdirectory-to-github-not-master 2022. 6. 13.
[GIT] Git 활용 예제 1) Working Directory (Local) => 개인 코드 작성 2) Staging 영역 => git add 를 통해 수정된 코드를 올리는 영역 3) Repository => git commit을 통해 최종 수정본 제출 gitbash 를 엶 or VScode 의 터미널 open $ git config --local user,name "사용자 이름" => 사용자 이름 등록 $ git config --local user.email "사용자 이메일" => 사용자 이메일 등록 $ git config --list => 사용자가 설정한 모든 것을 보여줌. 설정 확인하자 $ git init => repository 에 가장 먼저 해야할 초기화 $git add . => 현재 directory의 모든 변경 내용.. 2022. 5. 30.
[GIT] GitHub 프로젝트 보안 (1) Git Credential Manager(GCM) Core 적용 => $git config --global credential.helper manager-core (2) 2FA 설정 (3) Signed Commit 강제 적용 (4) 릴리즈 브랜치 보호 (룰 기반 Protected branch) (5) PR 리뷰 및 승인 강제 (6) 중요 정보 누출 방지를 위한 Secret 스캐닝 도구 적용 (7) 누출 기록 삭제를 위한 Git History 지우기(재작성) (8) 신뢰하는 GitHub Action만 실행 (9) GitHub Action 으로 Secret보호 (10) Dependency의 취약성 검사 (11) Dependabot 으로 취약 dependency 자동 보안 업데이트 (12) GitHub.. 2022. 5. 16.