기억은 휘발성 메모리

git & github 시작하기 본문

Things to remember

git & github 시작하기

하상엽 2018. 7. 6. 17:33

cmd 명령어

  • cd 경로 : 해당 경로로 이동

  • cd .. : 하위 경로로 이동

  • mkdir 폴더 : (폴더)라는 디렉토리 생성

참고 : 들어가기 전에 (-)짧은 명령어 (--)긴 명령어

시작하기

  1. download git https://git-scm.com/downloads

  1. create github ID

  1. git bash 실행

    미리 저장되어 있을지 모르는 계정 정보 삭제 (선택 사항)

    $ git config --global --unset credential.helper

    $ git config --system --unset credential.helper

  1. 원하는 경로로 이동 ex) 바탕화면/git-traning

    $ cd ~desktop/git-traning

  1. 해당 디렉토리(git-traning)를 git 저장소로 만들기

    $ git init

    (디렉토리명 다음 (master))

  1. 이름, 이메일 설정

    $ git config --global user.name "Github 가입 Username을 입력"

    $ git config --global user.email "Github 가입 Email을 입력"

  1. 에디터 설정

    $ git config --global core.editor vim

  1. 설정 확인하기

    $ git config --global --list

git 명령어

  • $ git status : 현재 디렉토리에서 추가 된 사항이 있는지 확인

  • $ git add [File Name] : 변경된 파일을 버전관리를 하기위해 추가

  • $ git commit -m "[Message]" : 변경된 파일에 대한 서술

  • $ git push -u origin master : 변경된 파일을 github에 추가


' Things to remember' 카테고리의 다른 글

ANGULARJS TUTORIAL  (0) 2018.06.07
Comments