Git에 올리는 기본 Process
$ git clone [master link]
$ git remote add [nickname] [master link]
---------------------------------------------------
$ git checkout -b [branch-name] //브랜치 생성
$ git add . //업로드
$ git commit -m "commit message"
$ git push -u [nickname] [branch-name]
GitHub 최신 commit으로 Base 업데이트
$ git fetch upstream master //최신 history 가져오기
$ git rebase upstream/master
$ git push --force origin [branch-name] //fork한 저장소 수정
'코딩' 카테고리의 다른 글
[Git 명령어] rebase, rewind, reset (0) | 2020.07.18 |
---|---|
nano 편집기 사용 (0) | 2020.07.18 |
[Git 명령어] branch, commit, stash (0) | 2020.07.18 |
[Git 명령어] Git 설정하기 (0) | 2020.07.18 |
[Git 명령어] 프로젝트 읽기 (0) | 2020.07.18 |