본문 바로가기
Programming/Git

git push하기 - terminal

by Chan_찬 2016. 4. 1.
728x90

git terminal

repository로 push하기 - step by step

  1. 초기화
    $ git init

  2. 파일등록
    $ git add *

  3. 상태확인 a:add, m:modify
    $ git status -s

  4. commit 코멘트 작성
    $ git commit

  5. remote 등록
    $ git remote add bit https://url/...

    bit: 레이블, 이후 url 대신 레이블사용

  6. 등록된 모든 remote 확인
    $ git remote -v

  7. remote로 push
    $ git push bit master

    Username: 입력
    Password: 입력

  8. remote 상태보기
    $ git remote show bit

728x90
728x90

'Programming > Git' 카테고리의 다른 글

git pull overwrite  (0) 2020.06.10
git pull without login - for gitlab  (0) 2020.06.09
git diff patch - 패치 생성/적용  (0) 2020.06.08
git add 취소  (0) 2020.06.08
SSH key & multi GitHub & IntelliJ  (0) 2016.03.25
Buy me a coffeeBuy me a coffee

댓글