WILT/Git
[Github] ๋ธ๋์น ์ญ์ Deleting branch withi Repository
kexon
2022. 7. 21. 23:06
๐จ ์ฌ๊ฑด๋ฐ์
main๋ธ๋์น์ push๋ฅผ ํ๋๋ฐ ์๊พธ ์๋ผ์ master๋ธ๋์น์ push๋ฅผ ํ๋๋ ๋ฐ๋ก ๋๋ค.
ํ์ง๋ง ๋๋ master ๋ธ๋์น๋ฅผ ์ญ์ ํ๊ณ default์ธ main ์๋ค๊ฐ pushํ๊ณ ์ถ์๋ค.
๐๏ธ ๊ณต์ฌ์ค
1. git documentation ์ฐธ๊ณ
์ด๋ฆ ๋ฐ๊พธ๋ฉด ๋๋๋ณด๋ค ํ๊ณ ์ด๋ ๊ฒ ํ์ง๋ง ์๋ฌด์ผ๋ ์ผ์ด๋์ง ์์๋ค ๐ญ ๋ช ๋ น์ด๋ฅผ ์๋ชป ์น๊ฑธ๊น,,,

git branch -m master main
2. ๊นํ๋ธ์์ ์ญ์
a. ์ญ์ ํ ๋ธ๋์น๊ฐ ์๋ ๋ ํฌ์งํ ๋ฆฌ์ ๋ค์ด๊ฐ์ Code > View all branches ํด๋ฆญ

b. ์ง์ฐ๊ณ ์ถ์ ๋ธ๋์น์ ํด์งํต์ ๋๋ฌ ์ญ์

๐ ํด๊ฒฐ
- 2๋ฒ ๋ฐฉ๋ฒ์ผ๋ก ์ญ์ ํ๊ณ main branch๋ก pushํ๋๋ ์ ๋๋ค!๐๐ป๐