728x90
[Git] ๊นํ๋ธ์ ๋ก์ปฌ ํด๋ ์ฐ๊ฒฐํ๊ธฐ(clone) (velog.io)
์์ ํฌ์คํ ์ ์ฐธ๊ณ ํ์ฌ ๋ ํฌ์งํ ๋ฆฌ ๋งํฌ ๋ณต์ฌ ํ
$ git clone ๋ ํฌ์งํ ๋ฆฌ๋งํฌ ๋ฅผ ํตํด
cloneํ๊ณ ๋๋ฉด,
ํด๋น ๋ก์ปฌ ํด๋์์ Git Bash here์ ํตํด ๊นbash๋ฅผ ์ด๊ณ ์์ ์ ๊ฐํ ํ
์ด ๋ชจ๋ ๊ณผ์ ์ ๋จ 5์ค๋ง ์ ๋ ฅํด์ฃผ๋ฉด ๋๋ค.
$ git clone
$ git add .
$ git status ์ค๋ช
: ๋ณ๊ฒฝ์ฌํญ์ ํ์ธํด์ค๋ค.
$ git commit -m "secondTset" ์ค๋ช
: ์ปค๋ฐํ ๋๋ง๋ค ๊ผผ๊ผผํ๊ฒ ์ฐ๋ ๊ฒ์ ์ถ์ฒ
$ git push origin main ์ค๋ช
: ํธ์ฌ
$ git pull origin main ์ค๋ช : ๊น ์ต์ ๋ฒ์ ์ ๋ก์ปฌ์ ๋๊ธฐํ
$ git clone
~๋ก์ปฌ์์ ์์ ํ~
$ git add .
$ git status
On branch main
Your branch is up to date with 'origin/main'.
Changes to be committed:
(use "git restore --staged <file>..." to unstage)
renamed: Pattern/test.txt -> Pattern/test2.txt
new file: Unity/test.txt
$ git commit -m "secondTset"
2 files changed, 1 insertion(+)
rename Pattern/{test.txt => test2.txt} (100%)
create mode 100644 Unity/test.txt
$ git push origin main
remote: Resolving deltas: 100% (1/1), completed with 1 local object.
main -> main
์ฐธ ์ฝ์ฃ ์
728x90
'ํ์๊ด๋ฆฌ > Git' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[Git] branch ๋ฐ๊ธฐ (0) | 2022.01.18 |
---|---|
๊น ๋ธ๋ก๊ทธ ํฌ์คํ ํ๊ธฐ (0) | 2022.01.08 |
๊น ๋ธ๋ก๊ทธ ๊ฐ์ค (0) | 2022.01.08 |
Git Push (0) | 2022.01.08 |
๊น, ๊นํ๋ธ ๋๋์ฒด ์ ์ฐ๋๊ฑฐ์์? ์ ๋ํ ๋๋ต (0) | 2021.12.29 |