Sujin's Blog

.gitignore

์‹ค์Šต ํ™˜๊ฒฝ: Mac OS & zsh with oh-my-zsh ์ด๋ฒˆ์—” .gitignore ์— ๋Œ€ํ•ด ์•Œ์•„๋ด…์‹œ๋‹ค. .gitignore ์€ git์ด ์‹ ๊ฒฝ์“ฐ์ง€ ์•Š์•„๋„ ๋˜๋Š” ํŒŒ์ผ์„ ๋ชจ์•„๋†“์€ ๊ฒƒ์ด๋ผ ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. 1. ์‹ค์Šต์„ ์œ„ํ•ด ์ƒˆ๋กœ์šด ํŒŒ์ผ์„ ์ƒ์„ฑํ•ด๋ด…์‹œ๋‹ค. vim์œผ๋กœ nothing.py ํŒŒ์ผ์„ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค.. (1).ํ‚ค๋ณด๋“œ i = ...

git commit+

์‹ค์Šต ํ™˜๊ฒฝ: Mac OS & zsh with oh-my-zsh git commit ํ•˜๊ณ ๋‚˜๋ฉด ์–ด๋–ค ๋ณ€ํ™”๊ฐ€ ์žˆ๋Š”์ง€ ์•Œ์•„๋ด…์‹œ๋‹ค. .git ํด๋” ๋‚ด๋ถ€ objects [commit ํ•˜๊ธฐ ์ „] add๋งŒ ๋˜์–ด์žˆ๋Š” ์ƒํƒœ [commit ํ•˜๊ธฐ ์ „] b3, f8 ํด๋”์™€ ํ•ด์‰ฌ๊ฐ’์ด ์ƒ์„ฑ๋ฉ๋‹ˆ๋‹ค. git log๋กœ ํ™•์ธํ•ด๋ณด๋ฉด ...

git commit

์‹ค์Šต ํ™˜๊ฒฝ: Mac OS & zsh with oh-my-zsh git commit์— ๋Œ€ํ•ด ์•Œ์•„๋ด…์‹œ๋‹ค. 1. git commit ํด๋” ๋‚ด ํŒŒ์ผ์ด ๋ชจ๋‘ add ๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค. ์ง€์—ญ ์ €์žฅ์†Œ์— ์˜ฌ๋ฆฌ๊ธฐ ์œ„ํ•ด commit์„ ํ•ด ๋ด…์‹œ๋‹ค. commit์„ ํ•˜๊ธฐ ์ „์— git log๋ฅผ ํ•œ๋ฒˆ ํ™•์ธํ•ด ๋ณผ๊นŒ์š”?! ์•„์ง commit์„ ํ•œ ๊ฒƒ์ด ์—†...

git add+

์‹ค์Šต ํ™˜๊ฒฝ: Mac OS & zsh with oh-my-zsh git add ํ•˜๊ณ ๋‚˜๋ฉด ์–ด๋–ค ๋ณ€ํ™”๊ฐ€ ์žˆ๋Š”์ง€ ์•Œ์•„๋ด…์‹œ๋‹ค. .git ํŒŒ์ผ ๋‚ด๋ถ€ [์ดˆ๊ธฐ objects ํด๋”] [git add newfile.txt ํ•œ ํ›„] git add์˜ ๊ฒฐ๊ณผ๋กœ 78 ํด๋”์™€ ํ•จ๊ป˜ ํ•ด์‰ฌ๊ฐ’์ด ์ƒ์„ฑ๋ฉ๋‹ˆ๋‹ค.

git add

์‹ค์Šต ํ™˜๊ฒฝ: Mac OS & zsh with oh-my-zsh git ์˜ ๊ธฐ๋ณธ ๋ช…๋ น์–ด๋ฅผ ์•Œ์•„๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค. 1. git status ํ˜„์žฌ git์˜ ์ƒํƒœ๋ฅผ ๋ณด์—ฌ์ฃผ๋Š” ๋ช…๋ น์–ด์ž…๋‹ˆ๋‹ค. git init ํ›„ ์–ด๋–ค ์ž‘์—…๋„ ํ•˜์ง€ ์•Š์€ ์ƒํƒœ์ด๋ฏ€๋กœ nothing to commit ๊ฒฐ๊ณผ๊ฐ€ ๋‚˜์˜ต๋‹ˆ๋‹ค. 2. ์‹ค์Šต์— ์‚ฌ์šฉํ•  ํด๋”๋ฅผ ์ƒ์„ฑํ•ด๋ด…์‹œ๋‹ค. vim ์œผ...

git init+

์‹ค์Šต ํ™˜๊ฒฝ: Mac OS & zsh with oh-my-zsh git init์„ ํ•˜๊ณ  ๋‚˜๋ฉด ์–ด๋–ค ๋ณ€ํ™”๊ฐ€ ์žˆ๋Š”์ง€ ์•Œ์•„ ๋ด…์‹œ๋‹ค. ์ˆจ๊น€ ํด๋”๋ฅผ ํ™•์ธ ํ•˜๊ธฐ ์œ„ํ•ด command + shift + . git initํ•˜๋ฉด ํด๋”์— .git ํด๋”๊ฐ€ ์ƒ์„ฑ๋ฉ๋‹ˆ๋‹ค. git ํด๋” ๋‚ด๋ถ€๋ฅผ ์กฐ๊ธˆ ์‚ดํŽด๋ด…์‹œ๋‹ค. config ํŒŒ์ผ git ๊ด€๋ฆฌ์ž์˜ ...

git init

์‹ค์Šต ํ™˜๊ฒฝ: Mac OS & zsh with oh-my-zsh 1. git ์ด ์„ค์น˜๋˜์–ด ์žˆ๋Š”์ง€ ํ™•์ธํ•ด ๋ด…๋‹ˆ๋‹ค. 2. ์‹ค์Šต์— ์‚ฌ์šฉํ•  ํด๋”๋ฅผ ์ƒ์„ฑํ•ด๋ด…์‹œ๋‹ค. 3. git์„ ์‚ฌ์šฉํ•˜๊ธฐ ์œ„ํ•ด git init์„ ํ•ด์ค๋‹ˆ๋‹ค. git initํ›„ master ์ฒดํฌ๊ฐ€ ํ‘œ์‹œ๋˜๋Š” ๊ฒƒ์„ ํ™•์ธํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. <br> (oh-my-zsh๋ฅผ ์‚ฌ์šฉ ์ค‘์ด๋ฏ€๋กœ...

Trending Tags