ํฐ์คํ ๋ฆฌ ๋ทฐ
๐ Error Fixed
gitlab push ์ค๋ฅ ํด๊ฒฐ Updates were rejected because a pushed branch tip is behind its remote counterpart.
์ฃผ๋ฌ 2024. 5. 24. 09:58๋ฐ์ํ
๐ฑ gitlab push ์ค๋ฅ ํด๊ฒฐ Updates were rejected because a pushed branch tip is behind its remote counterpart.
gitlab์ ๋นํ๋ก์ ํธ๋ฅผ ๋ง๋ค๋ readme.md๋ฅผ ๋ง๋ค๊ณ gitlab์์ ํด๋น ํ์ผ์ ์ญ์ ๋ฅผ ํ๋ค
๋ก์ปฌ์ ์ด๋ฏธ ๋ง๋ค์ด์ง ํ๋ก์ ํธ๋ฅผ ์ฌ๋ฆฌ๋ ค๊ณ ํ๋ push ๊ฑฐ์ ์ด ๋ฐ์์ ํ์์๋ ๊ฐ์ ํธ์ ์ค์ ์ ํด๋ณด์
# ๊ฐ์ ํธ์
git push -u origin main -f
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. If you want to integrate the remote changes,
hint: use 'git pull' before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
๊ฐ์ ํธ์๋ฅผ ํ์ฌ๋ rejected๊ฐ ๋ฐ์ํ์๋ค. ์๋ฌด๋๋ gitlab์ ๊ฐ์ push ์ค์ ์ต์ ์ ์ผ์ฃผ๋ ๊ณณ์ด ์์ ๊ฒ ๊ฐ์์ ์ฐพ์๋ดค๋ค
Setting -> Repository -> Protected branches -> Allowed to force push ๋ฅผ ์ผ์ฃผ์ธ์
์ต์ ์ค์ ์๋ฃํ
# ๊ฐ์ ํธ์
git push -u origin main -f
๊ฐ์ ํธ์ํ๋ฉด ์ ์์ ์ผ๋ก ์ฒ๋ฆฌ ๋ฉ๋๋ค. : )
'๐ Error Fixed' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
python chromedriver Exec format error (3) | 2024.08.01 |
---|---|
[GIT-FORK] In a case you entered incorrect password, please update it in Keychain Access application. (0) | 2024.07.04 |
maven Blocked mirror for repositories (0) | 2023.10.13 |
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". (0) | 2022.01.13 |
๊ณต์ง์ฌํญ
์ต๊ทผ์ ์ฌ๋ผ์จ ๊ธ
์ต๊ทผ์ ๋ฌ๋ฆฐ ๋๊ธ
- Total
- Today
- Yesterday
๋งํฌ
TAG
- git user.gmail
- git name
- git gmail
- ๊ฐ์ฒด์งํฅ์ค๊ณ solid
- ๋์์ธํจํด ์ฅ๋จ์
- ๋์์ธํจํด ๋จ์
- ๋งฅ ์ฑ ์ถ์ฒ
- ๊ฐ์ฒด ์งํฅ ์ค๊ณ ์์น
- ๋์์ธํจํด ์ฅ์
- ๋งฅ๋ฆฐ์ด ์ฑ ์ถ์ฒ
์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 |
๊ธ ๋ณด๊ดํจ