inblog logo
|
sxias
    Git

    [Git] 0. Git Commands

    문정준's avatar
    문정준
    Mar 19, 2025
    [Git] 0. Git Commands
    git config --global user.name "YourName" git config --global user.email "you@example.com" git init git add . git commit -m "view complete"
    git remote add origin https://github.com/Sxias/repository
    git remote -v
    git push origin master
    로그 확인
    git log
    변경사항 확인
    git status
     

    Git Push

    1. 변경사항 확인 git status 2. 현재 파일의 snapshot (clone) 저장 git add . 3. 커밋 (수정사항) 반영 git commit -m "commitment" 4. Push git push origin master 5. 내역(로그) 확인 git log
    notion image

    Git Clone

    • Repository 복사
    git clone repository url(.git)
    notion image
     

    Git Pull

    • Repository 현재 버전 다운로드 (형상 일치)
    git pull origin master
    Share article

    Sxias ㆍ a32176740@gmail.com

    RSS·Powered by Inblog