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 bash 사용법 (pull, push) #1

Open
Hyomin6349 opened this issue Aug 19, 2020 · 0 comments
Open

Git bash 사용법 (pull, push) #1

Hyomin6349 opened this issue Aug 19, 2020 · 0 comments

Comments

@Hyomin6349
Copy link
Collaborator

Hyomin6349 commented Aug 19, 2020

0-1. git origin 변경

   git remote set-url origin [변경할 주소]
  1. 작업용 브랜치 만들기
   git checkout -b [작업용브랜치명]
  1. git을 늘 최신 상태로 유지하기 위한 작업 (git 작업하기 전 매번 해줘야하는 작업)
   git checkout master
   git pull origin master
   git checkout [작업용브랜치명]
   git rebase master
  1. git 업로드 하는 법
   git status
   git add .
   git commit -m "[커밋 메시지]"
   git push origin [작업용브랜치명]
   + 깃 주소 들어가서 pull request 생성하기

이전 commit으로 돌리기 (혼자 건드리다가 큰일난 경우)

   git reset --hard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant