๐ ์์ ์ฌํญ์ stash(์์๊ณต๊ฐ์ผ๋ก ์ฎ๊น) ํ ๋ค์, ์๊ฒฉ ์ ์ฅ์๋ฅผ pull ๋ฐ๊ณ stash ํด๋์ ๊ฒ์ ๋ค์ ๋ถ๋ฌ์ค๋ฉด ๋๋ค.
1. git pull origin ๋ธ๋์น์ด๋ฆ
- ์ค๋ฅ ๋ฐ์ : Please commit your changes or stash them before you merge.
2. git stash
- ๋ด ์์ ์ฌํญ์ ์์ ์ ์ฅ๊ณต๊ฐ์ผ๋ก ์ ์ ์ฎ๊ธด๋ค
3. git pull origin ๋ธ๋์น์ด๋ฆ
4. git stash pop
- ๋ด๊ฐ ๋ก์ปฌ์ ์์ ํ ์ฌํญ๊ณผ ์๊ฒฉ์ ์ฅ์์์ pull ๋ฐ์ ์์ค๊ฐ merge ๋๋ค.
5. ์์ค ์์
6. git add .
7. git commit -m "์ปค๋ฐ๋ฉ์์ง"
8. git push origin ๋ธ๋์น์ด๋ฆ
pull ๋ฐ๊ธฐ ์ ์ commitํ๊ณ push ํ์ง ๋ง ๊ฒ!
์ถ์ฒ : https://webstudynote.tistory.com/116
[Git] Please commit your changes or stash them before you merge. ํด๊ฒฐ๋ฐฉ๋ฒ
ํ๋ก์ ํธ๋ฅผ ํ๋ฉด์ ํ์๋ค์ด ์ด ์ค๋ฅ๋ก 3๋ฒ์ ๋ถ๋ฅธ ๊ฒ ๊ฐ๋ค. Your local changes to the following files would be overwritten by merge: ํ์ผ๋ช Please commit your changes or stash them before you ..
webstudynote.tistory.com
'git' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[Git] ํ์ผ์ ์ํ์ ๋ผ์ดํ ์ฌ์ดํด (0) | 2022.01.15 |
---|---|
[Git] ๊ฐ์ Pull (0) | 2021.05.25 |
[Git] ๊ธฐ๋ณธ ๋ช ๋ น์ด (0) | 2021.05.04 |