AI 공부하는 도비

대학원생이 AI, NLP등을 공부합니다

코딩

Git에 코드 올리는 명령어 간단하게 정리

공부하는 도비 2020. 7. 20. 10:44

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