Git - slahsk/study GitHub Wiki

git clone ๊ฒฝ๋กœ
git commit -m "์ปค๋ฐ‹๋‚ด์šฉ"

pussh ํ• ๋•Œ u์˜ต์…˜ ์ฃผ๋ฉด ์›น์—์„œ ๋กœ๊ทธ์ธ์ฐฝ์ด ๋‚˜์˜จ๋‹ค.

git push origin master
git push u origin master

commit ์‹œ git please tell me who you are ๋‚˜์˜ค๋ฉด

git config user.name "slahsk"
git config user.email "[email protected]"

commit ์‹œ filename too long ๋‚˜์˜ค๋ฉด

git config --system core.longpaths true

push ์‹œ ์ฃผ์†Œ๊ฐ€ ๋‹ค๋ฅด๋‹ค๊ณ  remoete error ๋ฐœ์ƒ์‹œ ์ •์ƒ์ ์ธ url ์ฃผ์†Œ๋กœ ๋ณ€๊ฒฝํ•ด์ค˜์•ผํ•œ๋‹ค.

git remote set-url origin ์ฃผ์†Œ

local ๋ธŒ๋Ÿฐ์น˜ ์‚ญ์ œ

git branch -d ๋ธŒ๋Ÿฐ์น˜์ด๋ฆ„

remote ๋ธŒ๋Ÿฐ์น˜ ์‚ญ์ œ ํ•˜๊ธฐ

git push origin --delete ๋ธŒ๋Ÿฐ์น˜์ด๋ฆ„

tag ์ถ”๊ฐ€ํ•˜๊ธฐ

git tag 3์žฅ

tag remote ์ถ”๊ฐ€

git push origin 3์žฅ

all
git push --tags

tag ์‚ญ์ œ

git tag -d 3์žฅ

tag remote ์‚ญ์ œ

 git push origin :refs/tags/3์žฅ