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]์ง€์—ญ ์ €์žฅ์†Œ์˜ ํ”„๋กœ์ ํŠธ๋ฅผ ์—…๋กœ๋“œํ•˜๋ ค๋‹ค defualt ๋ธŒ๋Ÿฐ์น˜๋Š” master๊ฐ€ ์•„๋‹ˆ๋ผ origin์ธ ๊ฑด์— ๊ด€ํ•˜์—ฌ
ํ˜•์ƒ๊ด€๋ฆฌ/Git

[Git]์ง€์—ญ ์ €์žฅ์†Œ์˜ ํ”„๋กœ์ ํŠธ๋ฅผ ์—…๋กœ๋“œํ•˜๋ ค๋‹ค defualt ๋ธŒ๋Ÿฐ์น˜๋Š” master๊ฐ€ ์•„๋‹ˆ๋ผ origin์ธ ๊ฑด์— ๊ด€ํ•˜์—ฌ

2022. 4. 10. 17:11
728x90

๊นƒํ—ˆ๋ธŒ(Github) 2. ์›๊ฒฉ ์ €์žฅ์†Œ ๋งŒ๋“ค๊ธฐ + ์ง€์—ญ ์ €์žฅ์†Œ์˜ ํ”„๋กœ์ ํŠธ๋ฅผ ์—…๋กœ๋“œ ํ•˜๊ธฐ : ๋‚ด ํ”„๋กœ์ ํŠธ๋ฅผ github์— ์˜ฌ๋ฆฌ๊ธฐ (tistory.com)

[ 05.23 ] git (1) - git upload procedure / ๋‚ด ์ž‘์—…๋ฌผ git hub์— ์—…๋กœ๋“œ ํ•ด๋ณด๊ธฐ. (velog.io)

 

[ 05.23 ] git (1) - git upload procedure / ๋‚ด ์ž‘์—…๋ฌผ git hub์— ์—…๋กœ๋“œ ํ•ด๋ณด๊ธฐ.

๊ฐœ๋ฐœ์‹œ์ž‘ํ•˜๊ณ  ์ˆ˜์—†์ด ๋“ค์–ด๋ดค์ง€๋งŒ ์ •ํ™•ํžˆ ๋ชฐ๋ž๋˜ git ์ด ๋ฌด์—‡์ธ์ง€ ๋‹ค๋ค„๋ณด๊ฒ ๋‹ค.git : ์ €์žฅ ๊ด€๋ฆฌ์†Œ ๊ฐœ๋….์ปดํ“จํ„ฐ์˜ ์šฉ๋Ÿ‰์€ ์ •ํ•ด์ ธ ์žˆ๋Š”๋ฐ ์ž‘์—…๋ฌผ์€ ๊ณ„์† ๋Š˜์–ด๊ฐ„๋‹ค๋ฉด ์–ด๋–ป๊ฒŒ ๋ ๊นŒ?์ปดํ“จํ„ฐ๋Š” ๋А๋ ค์งˆํ…Œ๊ณ 

velog.io

[GitHub] ๊นƒํ—ˆ๋ธŒ์— ํ”„๋กœ์ ํŠธ ์˜ฌ๋ฆฌ๊ธฐ (tistory.com)

cd ํ”„๋กœ์ ํŠธ ํด๋”

git init    //.git ํŒŒ์ผ ์ƒ์„ฑ

git add .   //์„ ํƒํ•œ ํ”„๋กœ์ ํŠธ ํด๋” ๋‚ด์˜ ๋ชจ๋“  ํŒŒ์ผ ๊ด€๋ฆฌ

  -> ํŠน์ •ํŒŒ์ผ๋งŒ ํ•˜๊ณ  ์‹ถ๋‹ค๋ฉด  git add ํŒŒ์ผ์ด๋ฆ„.ํŒŒ์ผํ˜•์‹  ex) git add a.txt

git status   //์ƒํƒœํ™•์ธ

git commit -m "์ฃผ์„"   //์ปค๋ฐ‹

 

์—…๋กœ๋“œ

git remote add origin ๊นƒํ—ˆ๋ธŒ์ €์žฅ์†Œ์ฃผ์†Œ

git push -u origin master

 

์—ฌ๊ธฐ๊นŒ์ง€ ๋”ฐ๋ผํ•˜๊ณ  ๊นƒํ—ˆ๋ธŒ์— ๋“ค์–ด๊ฐ€๋ณด๋ฉด ์ •์ƒ push๊ฐ€ ์•ˆ๋œ ๋ชจ์Šต.

์›์ธ์€  defualt ๋ธŒ๋Ÿฐ์น˜๋Š” master๊ฐ€ ์•„๋‹ˆ๋ผ origin์ธ ๊ฑด

 

๊ทธ๋Ÿฌ๋ฏ€๋กœ git bash๋กœ ์•„๋ž˜ ์ž‘์—…์„ ์ถ”๊ฐ€ํ•˜์—ฌ ํ•ด๊ฒฐ~!


$ git checkout master
Already on 'master'
Your branch is up to date with 'origin/master'.



$ git branch main master -f


$ git checkout main
Switched to branch 'main'


$ git push origin main -f
Total 0 (delta 0), reused 0 (delta 0), pack-reused 0


 

ํ•ด๊ฒฐ ์ฐธ๊ณ  ์ถœ์ฒ˜ : [Git] default ๋ธŒ๋žœ์น˜๋Š” master์—์„œ main์œผ๋กœ ๋ณ€๊ฒฝ๋˜์—ˆ์Œ — Gyoogle (๊ทœ๊ธ€) (tistory.com)

 

[Git] default ๋ธŒ๋žœ์น˜๋Š” master์—์„œ main์œผ๋กœ ๋ณ€๊ฒฝ๋˜์—ˆ์Œ

ํ˜„์žฌ ๋งŽ์€ Git ๋ช…๋ น์–ด ์ •๋ณด๋“ค์ด 'master' ๋ธŒ๋žœ์น˜๋ฅผ ์ด์šฉํ•˜๊ณ  ์žˆ๋‹ค. ํ•˜์ง€๋งŒ ์ตœ๊ทผ ํ”„๋กœ์ ํŠธ ์ƒ์„ฑ ์‹œ ๊ธฐ๋ณธ ๋ธŒ๋žœ์น˜๊ฐ€ 'main'์œผ๋กœ ๋ณ€๊ฒฝ๋˜๋ฉด์„œ ํ˜ผ๋™๋˜๋Š” ๊ฒฝ์šฐ๋“ค์ด ์กด์žฌํ•œ๋‹ค. "There isn't anything to compare. Nothing

kim6394.tistory.com

 

 

ํ•˜์ง€๋งŒ..! ์ด๋ ‡๊ฒŒ ๊นŒ์ง€ ์Šค์Šค๋กœ๋ฅผ ๊ณ ์ƒ ํ•„์š”๊ฐ€ ์—†์—ˆ๋‹ค..

 

์ด์ œ ๋ฐ”๋กœ ์ด๋ ‡๊ฒŒ ์‹คํ–‰์‹œ์ผœ์ฃผ์ž

…or push an existing repository from the command line

 
git remote add origin https://github.com/๊ณ„์ •๋ช…/ํ”„๋กœ์ ํŠธ๋ช….git
git branch -M main
git push -u origin main

728x90

'ํ˜•์ƒ๊ด€๋ฆฌ > Git' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๋‹ค๋ฅธ ๊ธ€

[Git] ์—…๋ฌด์šฉ, ๊ฐœ์ธ์šฉ ๊นƒ ๊ณ„์ • ๋ถ„๋ฆฌ  (0) 2022.12.07
[๊นƒํ—ˆ๋ธŒ ๋ฆฌ๋“œ๋ฏธ] ๊ธฐ์ˆ ์Šคํƒ ์•„์ด์ฝ˜ ์ถ”๊ฐ€ํ•˜๊ธฐ  (0) 2022.05.08
[Git] branch ๋”ฐ๊ธฐ  (0) 2022.01.18
๊นƒ ๋ธ”๋กœ๊ทธ ํฌ์ŠคํŒ…ํ•˜๊ธฐ  (0) 2022.01.08
๊นƒ ๋ธ”๋กœ๊ทธ ๊ฐœ์„ค  (0) 2022.01.08
    'ํ˜•์ƒ๊ด€๋ฆฌ/Git' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๋‹ค๋ฅธ ๊ธ€
    • [Git] ์—…๋ฌด์šฉ, ๊ฐœ์ธ์šฉ ๊นƒ ๊ณ„์ • ๋ถ„๋ฆฌ
    • [๊นƒํ—ˆ๋ธŒ ๋ฆฌ๋“œ๋ฏธ] ๊ธฐ์ˆ ์Šคํƒ ์•„์ด์ฝ˜ ์ถ”๊ฐ€ํ•˜๊ธฐ
    • [Git] branch ๋”ฐ๊ธฐ
    • ๊นƒ ๋ธ”๋กœ๊ทธ ํฌ์ŠคํŒ…ํ•˜๊ธฐ
    Rainbow๐ŸŒˆCoder
    Rainbow๐ŸŒˆCoder
    ๋ชฐ๋ผ๋„ ๊ฒฐ๊ตญ์€ ์•„๋Š” ๊ฐœ๋ฐœ์ž, ๊ทธ๋Ÿฐ ์‚ฌ๋žŒ์ด ๋˜๊ธฐ ์œ„ํ•œ ๋งค์ผ์˜ ํ•œ๊ฑธ์Œ

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