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
Jiny530 opened this issue Jul 10, 2021 · 0 comments
Open

Git Bash 명령어 (pull/push) #1

Jiny530 opened this issue Jul 10, 2021 · 0 comments

Comments

@Jiny530
Copy link
Member

Jiny530 commented Jul 10, 2021

  1. 작업용 브랜치 만들기
   git checkout -b [작업용브랜치명]
  1. git을 늘 최신 상태로 유지하기 위한 작업 (git 작업하기 전 매번 해줘야하는 작업)
   git checkout [작업용브랜치]
   git pull origin main
   git rebase main

git hub desktop에서 자신의 브렌치로 이동했는지 확인 후 작업 시작
3. 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