250x250
Rainbow๐ŸŒˆCoder
My dev Note๐Ÿ“’
Rainbow๐ŸŒˆCoder
์ „์ฒด ๋ฐฉ๋ฌธ์ž
์˜ค๋Š˜
์–ด์ œ
  • ๋ถ„๋ฅ˜ ์ „์ฒด๋ณด๊ธฐ (411)
    • ๊ณต์ง€์‚ฌํ•ญ (0)
    • Debugger (10)
      • Visual Studio Debugger (1)
      • Chrome DevTools (3)
      • Visual Studio Code Debugger (4)
      • eclipse (1)
      • intelliJ (1)
    • OOP (2)
      • OOP (2)
    • TypeScript (54)
      • ํƒ€์ž…์Šคํฌ๋ฆฝํŠธ TypeScript (54)
    • Javascript (87)
      • Javascript (45)
      • Node.js (19)
      • React (5)
      • FE ๊ฐœ๋ฐœํ™˜๊ฒฝ์„ค์ • (3)
      • React์™€ Node ๊ฐ™์ด ๋•Œ๋ ค์žก๊ธฐ (6)
      • next.js (2)
      • pixi.js (7)
    • ๋งˆํฌ์—… (23)
      • Html & Css (23)
    • C# (80)
      • C# (12)
      • ์ด๊ฒƒ์ด C#์ด๋‹ค (68)
    • C++ (30)
      • c++ (27)
      • win api (3)
    • Unity (18)
      • Unity(๊ธฐ์ดˆ) (8)
      • Unity(C#์ค‘๊ธ‰) (5)
      • ์œ ๋‹ˆํ‹ฐ ํฌํ†ค(๋„คํŠธ์›Œํฌ) (4)
      • unity c# MyCode (1)
    • Java & Spring (29)
      • Java (11)
      • ์Šคํ”„๋ง (8)
      • Java Algorithm (9)
      • Javs Data Structures (1)
    • ์ž๋ฃŒ๊ตฌ์กฐ์™€ ์•Œ๊ณ ๋ฆฌ์ฆ˜ (15)
      • ์ž๋ฃŒ๊ตฌ์กฐ (5)
      • ์•Œ๊ณ ๋ฆฌ์ฆ˜ (10)
    • ํ˜•์ƒ๊ด€๋ฆฌ (15)
      • Git (11)
      • ์†Œ์ŠคํŠธ๋ฆฌ (3)
    • ๊ทธ๋ž˜ํ”ฝ์Šค (7)
      • WebGl (7)
    • AWS (3)
      • aws (3)
    • ๋ฆฌ๋ˆ…์Šค (5)
      • ๋ฆฌ๋ˆ…์Šค (5)
    • ์ฑ… ๋ฆฌ๋ทฐ (13)
      • ํด๋ฆฐ์ฝ”๋“œ(์ฑ…๋ฆฌ๋ทฐ) (3)
      • ์œ ์ง€๋ณด์ˆ˜๊ฐ€๋Šฅํ•œ์ฝ”๋”ฉ์˜๊ธฐ์ˆ C#ํŽธ(์ฑ…๋ฆฌ๋ทฐ) (1)
      • ๋ฆฌํŒฉํ† ๋ง(์ž๋ฐ”์Šคํฌ๋ฆฝํŠธํŒ) (9)
    • Server (2)
      • ๊ฒŒ์ž„ ์„œ๋ฒ„(๋„คํŠธ์›Œํฌ, ๋ฉ€ํ‹ฐ์“ฐ๋ ˆ๋“œ,OS) (2)
    • ์„ค๊ณ„, ์•„ํ‚คํ…์ณ (4)
    • ํŒŒ์ด์ฌ (5)
    • ๋””์ž์ธํŒจํ„ด (2)
    • mocha (2)
    • Jest (1)
    • Spine (1)
    • ์ธ๊ณต์ง€๋Šฅ (1)
      • ํ˜ผ์ž๊ณต๋ถ€ํ•˜๋Š”๋จธ์‹ ๋Ÿฌ๋‹+๋”ฅ๋Ÿฌ๋‹ (1)

๋ธ”๋กœ๊ทธ ๋ฉ”๋‰ด

  • ํ™ˆ
  • ํƒœ๊ทธ
  • ๋ฐฉ๋ช…๋ก

๊ณต์ง€์‚ฌํ•ญ

์ธ๊ธฐ ๊ธ€

ํƒœ๊ทธ

  • MySQL
  • ์ปดํฌ์ง€์…˜
  • ์œ„์ž„
  • ใ…ฃใ„ท

์ตœ๊ทผ ๋Œ“๊ธ€

์ตœ๊ทผ ๊ธ€

ํ‹ฐ์Šคํ† ๋ฆฌ

hELLO ยท Designed By ์ •์ƒ์šฐ.
Rainbow๐ŸŒˆCoder

My dev Note๐Ÿ“’

ํ˜•์ƒ๊ด€๋ฆฌ/Git

๊นƒ Clone : ๊นƒํ—ˆ๋ธŒ์— ๋กœ์ปฌ ํด๋” ์—ฐ๊ฒฐํ•˜๊ณ  commit, push๊นŒ์ง€

2022. 1. 8. 16:22
728x90

[Git] ๊นƒํ—ˆ๋ธŒ์— ๋กœ์ปฌ ํด๋” ์—ฐ๊ฒฐํ•˜๊ธฐ(clone) (velog.io)

 

[Git] ๊นƒํ—ˆ๋ธŒ์— ๋กœ์ปฌ ํด๋” ์—ฐ๊ฒฐํ•˜๊ธฐ(clone)

1. PC(๋กœ์ปฌ)์— ์ƒˆ๋กœ์šด ํด๋” ์ƒ์„ฑ **2. ๋งˆ์šฐ์Šค ์˜ค๋ฅธ์ชฝ - Git Bash Here * mac์€ terminal์—์„œ ์—ด๊ธฐ* 3. ๊นƒ ๊ณ„์ •

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
    'ํ˜•์ƒ๊ด€๋ฆฌ/Git' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๋‹ค๋ฅธ ๊ธ€
    • ๊นƒ ๋ธ”๋กœ๊ทธ ํฌ์ŠคํŒ…ํ•˜๊ธฐ
    • ๊นƒ ๋ธ”๋กœ๊ทธ ๊ฐœ์„ค
    • Git Push
    • ๊นƒ, ๊นƒํ—ˆ๋ธŒ ๋„๋Œ€์ฒด ์™œ ์“ฐ๋Š”๊ฑฐ์˜ˆ์š”? ์— ๋Œ€ํ•œ ๋Œ€๋‹ต
    Rainbow๐ŸŒˆCoder
    Rainbow๐ŸŒˆCoder
    ๋ชฐ๋ผ๋„ ๊ฒฐ๊ตญ์€ ์•„๋Š” ๊ฐœ๋ฐœ์ž, ๊ทธ๋Ÿฐ ์‚ฌ๋žŒ์ด ๋˜๊ธฐ ์œ„ํ•œ ๋งค์ผ์˜ ํ•œ๊ฑธ์Œ

    ํ‹ฐ์Šคํ† ๋ฆฌํˆด๋ฐ”