Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git 자주 쓰는 명령어 #7

Open
ji-water opened this issue Jul 6, 2020 · 0 comments
Open

git 자주 쓰는 명령어 #7

ji-water opened this issue Jul 6, 2020 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@ji-water
Copy link
Contributor

ji-water commented Jul 6, 2020

0-0. fork 저장소 로컬로 가져오기

   cd [작업 원하는폴더]
   git clone [fork github주소]

0-1. upstream 저장소 등록 (최초1번만 수행)

   git remote add upstream https://github.com/SWM-chatbot/SandwichMaker
  1. 작업용 브랜치 만들기
   git checkout -b [작업용브랜치명]
  1. git을 늘 최신 상태로 유지하기 위한 작업 (git 작업하기 전 매번 해줘야하는 작업)
   git checkout master
   git fetch upstream
   git merge upstream/master
   git checkout [작업용브랜치명]
   git rebase master
  1. git 업로드 하는 법
   git status
   git add -u
   git commit -m "[커밋 메시지]"
   git push origin [작업용브랜치명]
   + 깃 주소 들어가서 pull request 생성하기
@ji-water ji-water added the documentation Improvements or additions to documentation label Jul 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant