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 stash 사용법 #12

Open
Jiny530 opened this issue Aug 3, 2021 · 1 comment
Open

Git stash 사용법 #12

Jiny530 opened this issue Aug 3, 2021 · 1 comment

Comments

@Jiny530
Copy link
Member

Jiny530 commented Aug 3, 2021

  1. 작업 중인 파일 임시저장 하기
   git stash
  1. 다른사람이 올린 변경사항 적용하기 (제대로 pull 됐는지 꼭 확인하기)
   git pull origin main
  1. 임시저장한 내 변경사항 가져오기 (가장 최근 stash한 것을 가져옴)
   git stash pop 
@Jiny530 Jiny530 changed the title Git stash 사용법 (동시 작업 시 필요) Git stash 사용법 Aug 11, 2021
@sbyeol3
Copy link

sbyeol3 commented Aug 12, 2021

2번을 좀 더 구체적으로 설명하면

git pull <저장소> <브랜치이름>
git pull origin main # origin이라는 저장소에서 main 브랜치의 변경사항을 가져옴
git pull king develop # king이라는 저장소에서(로컬에서 이름을 이렇게 설정했을 때 유효) develop 브랜치의 변경사항을 가져옴

으로 이해하시면 쉽습니다!
이상 -설명충-

@Jiny530 Jiny530 added documentation Improvements or additions to documentation and removed documentation Improvements or additions to documentation labels Dec 29, 2021
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

2 participants