How-to Geek
Secreetgeek.net
Less than 1 minute
๋ช ๋ น์ด | ์ค๋ช |
---|---|
git remote -vv |
๐๋ก์ปฌ์ ๋ฑ๋ก ๋ ์๊ฒฉ์ ์ฅ์ ์ ๋ณด ์กฐํ |
git remote add <์ ์ฅ์ ๋ณ์นญ> <์ ์ฅ์ ์ฃผ์> |
๐๋ก์ปฌ์ ์๊ฒฉ์ ์ฅ์ ์ ๋ณด๋ฑ๋ก |
git remote rename <์ ์ฅ์ ๋ณ์นญ> <์ ์ ์ฅ์ ๋ณ์นญ> |
๐๋ก์ปฌ์ ๋ฑ๋ก ๋ ์๊ฒฉ์ ์ฅ์ ๋ณ์นญ ์์ |
git remote set-url <์ ์ฅ์ ๋ณ์นญ> <์ ์ ์ฅ์ ์ฃผ์> |
๐๋ก์ปฌ์ ๋ฑ๋ก ๋ ์๊ฒฉ์ ์ฅ์ ์ฃผ์ ์์ |
git fetch <์ ์ฅ์ ๋ณ์นญ> |
๐(๋ก์ปฌ์ ๋ฑ๋ก ๋) ์๊ฒฉ์ ์ฅ์ ์ํ ๋๊ธฐํ |
git fetch --all |
๐(๋ก์ปฌ์ ๋ฑ๋ก ๋) ๋ชจ๋ ์๊ฒฉ์ ์ฅ์ ์ํ ๋๊ธฐํ |
git pull <์ ์ฅ์ ๋ณ์นญ> <๋ธ๋์น ๋ช
> |
โฌ(์ง์ ํ ๋ธ๋์น๋ก) push ๋ commit ๋ชฉ๋ก ๊ฐ์ ธ์ค๊ธฐ (์๊ฒฉ > ๋ก์ปฌ) |
git push <์ ์ฅ์ ๋ณ์นญ> <๋ธ๋์น ๋ช
> |
โซ(์ง์ ํ ๋ธ๋์น์์) ๋ก์ปฌ์์ ์์ ํ commit ๋ชฉ๋ก push ํ๊ธฐ |
๊ฐ์ฅ ๊ธฐ๋ณธ์ ์ธ if-else ๊ตฌ๋ฌธ์ ํ์
if command; then
# <commands>
fi
ssh-keygen
sudo adduser <newuser>
usermod -aG sudo <newuser>
/bin/sh^M
: bad interpreter: ๊ทธ๋ฐ ํ์ผ์ด๋ ๋๋ ํฐ๋ฆฌ๊ฐ ์์ต๋๋ค.