본문 바로가기

4

[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] 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.
[GIT] GIT 설치 및 관리 (with VScode, win10) - git repository는 파일 및 폴더의 저장소 기능만 함. - 파일 변경 이력 별로 저장되기에, 작업 중 error 났으나 감당하기 어려우면, 이전 변경 이력 상태로 돌아갈 수 있음 - server에서 관리하는 '원격 저장소', PC에서 관리하는 'Local 저장소'로 나뉨 1) Github 아이디 만들기 https://github.com/ 2) git 설치 https://git-scm.com/ 설치시 아래 두 부분을 필수 선택 설치 이후 GIt Bash or Git CMD 에서 이름, 이메일 설정 버전 관리를 위한 정보 등록 => $ git config --globla user.name "Localhost" $ git config --global user.email "localhost@gmai.. 2022. 5. 13.