inblog logo
|
vosw1
    Git&Github

    형상 저장하기

    Dec 12, 2023
    형상 저장하기

    1. Git 시작하기

    💡
    git init : 깃 시작
    notion image
    notion image
     

    2. 형상 저장하기

    스냅샷 찍기
    💡
    git add . : 현재 내 프로젝트 내부에 있는 모든 파일에 대한 형상을 저장 . : 현재 상태 모든 것을 관리
    notion image
     
    저장하기
    💡
    git commit -m "메세지 명" m:메세지를 남길 수 있음
    notion image
     

    3. 사용자 등록하기

    💡
    git config --global user.email "이메일 주소" git config --global user.name "ID명"
    notion image
     

    4. 깔끔하게 정리하기

    💡
    clear : 정리
    notion image
     

    5. commit 기록 확인하기

    💡
    git log : commit 기록 확인하기
    notion image
     
    💡
    rm —help: 옵션들의 설명을 알려줌
    - : 약어
    — : 풀 네임
    ctrl + C : 지금 명령을 나오는 것
    notion image
     
    💡
    rm : 삭제 명령
    rm -r : 폴더 삭제
    rm -rf .git : 강제 삭제
    notion image
     
    💡
    git reset —hard 해시 : 삭제
    git reflog : 커밋 히스토리 조회
     

    6. 형상 올리기

    💡
    git push origin master : 형상 올리기
    Share article

    vosw1

    RSS·Powered by Inblog