inblog logo
|
Coding's note
    GIT

    Git 사용, 기본

    이소연's avatar
    이소연
    Aug 06, 2024
    Git 사용, 기본
    Contents
    GITHUB 사용법
    git init : 창문을 여는 상태ㅣ git add . git commit -m "init"
    ctrl + win +방향 키 오/왼
     
    환경변수 : 컴퓨터가 이해하는 경로
    패스 : 우리가 이해하는 경로
     
    [사용자 등록] git config --global user.email "thdus1323@naver.com" git config --global user.name "thdus"
     
    -r, -R, --recursive : 삭제
    notion image
     
    1. 해쉬(Hash) : 어떤 값을 특정한 값(원본)으로 만들어주는 것-v : 임의의 난수 16진수 0123456789ABCDEF(16자) 숫자3 : OX03 OX면 16진수? EX) 안녕 > Hash > AB3F7D 특징) 안녕 > Hash > AB3F7D 동일하게 나옴 * 특징 1) 동일하게 나옴 안녕 > Hash > AB3F7D 치고 '안녕'을 치면 > Hash > AB3F7D 동일하게 나옴 2) 복구화가 안됨.(단방향) AB3F7D를 안녕으로 원복할 수는 없음. * 활용 1) 무엇을 해시하던지 항상 동일한 길이가 나온다. EX) 책 한권을 해쉬했을 때 A3F6DO라고 나왔으면 책 치면 그대로 나옴. 홍길동(저자) A3F6DO 이었으면 호길동(저자, 위조) 3F607D로 나옴. => (온라인상에서)전자 서명, 위조 확인 가능, 진위여부 판별가능 대신 A3F6DO를 책으로 원복은 불가능
    notion image
     
    • id(user name)
    notion image
     
    .java : pakage
     
    💡
    파스칼 표기
    10개면 VarEx01
    100개면 VarEx001
    (나중에 이름차순으로 정리 이쁘게 하려고)
    notion image
     
    자바의 모든 코드는
    notion image
    { }class 안에 적어야 한다.
     
    notion image
    notion image
     
    사진 찍기

    GITHUB 사용법

    1. git init : 창문 열기
    v snapshot : 현재상태 기록
    2. git add . : 사진 찍기
    3. git commit -m “ ” : 사진첩에 저장
     
    notion image
    notion image
    💡
    git 명령어
    * github에 올라갔는지 확인하는 것 : git remote -v
    * github에 올리기(변경사항 원격 업로드?) : git push origin master (오타조심!)
    *하고 있는 일 멈추고 나오는 것 : ctrl + c
     
     
    git hub올리기
    notion image
    notion image
    * github에 올리기 git add . > git commit -m "" > git push origin master
     
    💡
    GITHUB 연동
    notion image
    연동 확인
    notion image
    올리기
    notion image
    💡
    수정
    push 전 commit 수정시 git commit --amend -m"생성자 공부”
     
    git 연습 시,
    notion image
     
    Share article
    Contents
    GITHUB 사용법

    Coding's note

    RSS·Powered by Inblog