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

[Git] ์—…๋ฌด์šฉ, ๊ฐœ์ธ์šฉ ๊นƒ ๊ณ„์ • ๋ถ„๋ฆฌ

2022. 12. 7. 18:45
728x90

https://www.daleseo.com/git-config/

 

git config ๋ช…๋ น์–ด ์‚ฌ์šฉ๋ฒ•

Engineering Blog by Dale Seo

www.daleseo.com

https://awesometic.tistory.com/128

 

๊นƒ(git) - ํ”„๋กœ์ ํŠธ/์ €์žฅ์†Œ๋งˆ๋‹ค ๋‹ค๋ฅธ ๊ณ„์ • ์ •๋ณด ์‚ฌ์šฉํ•˜๊ธฐ

์ €์žฅ์†Œ๋ณ„ ๊ณ„์ • ์„ค์ • Command line ์—์„œ git์„ ์‚ฌ์šฉํ•˜๋ ค๋ฉด, git ์„ค์น˜ ํ›„ ๊ฐ„๋‹จํ•œ ์„ค์ • ๋‘ ๊ฐ€์ง€ ์ •๋„๋Š” ํ•ด์ค˜์•ผ ํŽธํ•ด์š”. ๊ณ„์ •๊ณผ ์ด๋ฆ„ ์„ค์ •์„ ํ•ด์ฃผ๋ฉด git commit, git push ํ•  ๋•Œ๋งˆ๋‹ค ๊ณ„์ • ์ •๋ณด๋ฅผ ์ž…๋ ฅํ•˜์ง€ ์•Š์•„๋„

awesometic.tistory.com

 

 

๋ ˆํฌ๋งˆ๋‹ค ์•„๋ž˜์™€ ๊ฐ™์ด ๊ธ€๋กœ๋ฒŒ๊ณผ ๋กœ์ปฌ์„ ์ž˜ ๊ตฌ๋ถ„ํ•ด์ฃผ๋ฉด ๋œ๋‹ค.

//๊ฐœ์ธ ํ”„๋กœ์ ํŠธ ์œ„์น˜์—์„œ 
$ git config user.email
mimi@personal.com

git config user.name
mimi

//ํšŒ์‚ฌ ํ”„๋กœ์ ํŠธ ์œ„์น˜์—์„œ 
$ git config user.email
mimi@business.com


git config user.name
Kimmiyeon

ํšŒ์‚ฌ ์ปดํ“จํ„ฐ์—์„œ ๊ฐœ์ธ ํ”„๋กœ์ ํŠธ๋ฅผ ํ•˜๋‹ค๊ฐ€ ์ œ๋ฒ• ์™„์„ฑ๋„๊ฐ€ ์˜ฌ๋ผ๊ฐ”์„ ๋•Œ,

๊ฐœ์ธ ๊นƒ ๊ณ„์ •์— ์ปค๋ฐ‹์„ ํ•˜๊ณ  ์‹ถ๋‹ค๋ฉด ํ•ด๋‹น ํฌ์ŠคํŒ…์ด ์œ ์šฉํ•  ๊ฒƒ์ด๋‹ค!

 

๋ณดํ†ต ๊นƒ ๊ณ„์ • ์„ธํŒ…์€ ์ด๋ ‡๊ฒŒ ํ•˜๊ฒŒ ๋œ๋‹ค.

git config --global user.name "mimi"
git config --global user.email "mimi@gmail.com"

ํ•˜์ง€๋งŒ ์ด๊ฒŒ, ๋งŒ์•ฝ ์ œ๊ฐ€ ์ €์žฅ์†Œ๋งˆ๋‹ค ๋‹ค๋ฅธ ๊ณ„์ •์œผ๋กœ ๋กœ๊ทธ์ธํ•ด์•ผํ•  ๊ฒฝ์šฐ ๋ฌธ์ œ๊ฐ€ ์ƒ๊ฒจ์š”. ์ €๋Ÿฐ ์„ค์ • ํ›„ git commit์„ ๋•Œ๋ฆฌ๋ฉด ๋ฌป์ง€๋„ ๋”ฐ์ง€์ง€๋„ ์•Š๊ณ  ๋ฐ”๋กœ global ์„ค์ •๋œ ๊ณ„์ • ์ •๋ณด๋กœ commit์ด ๋งŒ๋“ค์–ด์ง‘๋‹ˆ๋‹ค. ๊ทธ ๊ณ„์ •์œผ๋กœ ํ•˜๋ฉด ์•ˆ ๋˜๋Š”๋ฐ ๋ง์ด์ฃ .

์ด๋Ÿด ๋• ์ €์žฅ์†Œ๋ณ„๋กœ git config --local๋ฅผ ํ•ด์ฃผ๋ฉด ๋ฉ๋‹ˆ๋‹ค. --global๋ณด๋‹ค ๋†’์€ ์šฐ์„ ์ˆœ์œ„๋ฅผ ๊ฐ€์ง€๋Š” ๊ฑธ๋กœ ๋ณด์—ฌ์š”.

์›ํ•˜๋Š” ์ €์žฅ์†Œ๋กœ ๊ฐ€์„œ ์ด๋Ÿฐ ๋ช…๋ น์„ ์ž…๋ ฅํ•ด์ค๋‹ˆ๋‹ค.

git config --local user.name "a-user-only-for-this-repository"
git config --local user.email "and-an-email-as-well@gmail.com"

์„ค์ • ํ›„์—๋Š” local๋กœ ์ง€์ •๋œ ์‚ฌ์šฉ์ž ๊ณ„์ • ์ •๋ณด๋กœ commit/push๊ฐ€ ์ด๋ฃจ์–ด์ง€๊ฒŒ ๋ฉ๋‹ˆ๋‹ค :)

์„ค์ • ํ™•์ธ์€ ์ด๋ ‡๊ฒŒ 

git config --list

 

 

๋™์ผํ•œ ์ปดํ“จํ„ฐ์—์„œ ๊ฐœ์ธ ํ”„๋กœ์ ํŠธ์™€ ์—…๋ฌด ํ”„๋กœ์ ํŠธ๋ฅผ ์™”๋‹ค๊ฐ”๋‹ค ํ•˜๋ฉด์„œ ๊ฐœ๋ฐœ์„ ํ•ด์•ผํ•˜๋Š” ์ƒํ™ฉ์ด๋ผ๋ฉด, ์ง€์—ญ(local) ๋ฒ”์œ„์—์„œ, ์ฆ‰ --global ์˜ต์…˜์„ ๋นผ๊ณ  ์‚ฌ์šฉ์ž ์ด๋ฆ„๊ณผ ์ด๋ฉ”์ผ์„ ๋ฎ์–ด์“ฐ๊ธฐ ํ•ด์ฃผ๋ฉด ๋œ๋‹ค๊ณ  ํ•œ๋‹ค.

$ git config user.email
mimi@personal.com
$ git config user.email mimi@business.com
$ git config user.email
mimi@business.com

 

https://velog.io/@daekyeong/Github-%EB%A1%9C%EC%BB%AC-%EC%A0%80%EC%9E%A5%EC%86%8C%EC%99%80-%EC%97%B0%EB%8F%99%ED%95%98%EA%B8%B0

 

[Github] ๋กœ์ปฌ ์ €์žฅ์†Œ์™€ ์—ฐ๋™ํ•˜๊ธฐ

๊ธฐ์กด์— ์‹ค์Šต์„ ์ง„ํ–‰ํ–ˆ๋˜ React ์ž๋ฃŒ๋ฅผ github ์ €์žฅ์†Œ์— ์—…๋กœ๋“œํ•˜๊ธฐ ์œ„ํ•ด์„œ ๋กœ์ปฌ ์ €์žฅ์†Œ์™€ github์„ ์—ฐ๊ฒฐํ–ˆ๋‹ค. 1. github(๊นƒํ—ˆ๋ธŒ) ๋ž€?๐Ÿง git์„ ์‚ฌ์šฉํ•˜๋Š” ํ”„๋กœ์ ํŠธ๋ฅผ ์ง€์›ํ•˜๋Š” ์›น ํ˜ธ์ŠคํŒ… ์„œ๋น„์Šค์ด๋‹ค. git์„

velog.io

 

https://investechnews.com/2021/06/14/mac-git-setting/

 

๋งฅ git ์„ค์น˜๋ถ€ํ„ฐ github ์—ฐ๊ฒฐ ํ•œ ๋ฒˆ์— ๋๋‚ด๋Š” ๋ฐฉ๋ฒ• - 5๋ถ„ ์•ˆ์— mac bash์—์„œ git ์ดˆ๊ธฐ ์„ค์ • - ์ธ๊ณต์ง€๋Šฅ

mac ํ™˜๊ฒฝ์—์„œ git ์„ค์น˜๋ฅผ ํ•œ ๋ฒˆ์— ๋๋‚ผ ์ˆ˜ ์žˆ๋Š” ์ „์ฒด ๊ณผ์ •์„ ๊ฐ„๋‹จํ•˜๊ฒŒ ๋‹ค๋ฃจ๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ์ƒˆ ์ž‘์—…ํ™˜๊ฒฝ์— github repository๋ฅผ ์—ฐ๋™ํ•˜๊ณ , ํŒŒ์ผ์„ ๋กœ์ปฌ์— ๊ฐ€์ ธ์˜ค๋Š” ๋ฐฉ๋ฒ•๋„ ํฌํ•จํ•ฉ๋‹ˆ๋‹ค.

investechnews.com

 

728x90

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

[git] ์ถฉ๋Œ๋‚  ๋•Œ, git reset HEAD โ€”hard  (0) 2023.01.19
[Git] git ignore  (0) 2022.12.21
[๊นƒํ—ˆ๋ธŒ ๋ฆฌ๋“œ๋ฏธ] ๊ธฐ์ˆ ์Šคํƒ ์•„์ด์ฝ˜ ์ถ”๊ฐ€ํ•˜๊ธฐ  (0) 2022.05.08
[Git]์ง€์—ญ ์ €์žฅ์†Œ์˜ ํ”„๋กœ์ ํŠธ๋ฅผ ์—…๋กœ๋“œํ•˜๋ ค๋‹ค defualt ๋ธŒ๋Ÿฐ์น˜๋Š” master๊ฐ€ ์•„๋‹ˆ๋ผ origin์ธ ๊ฑด์— ๊ด€ํ•˜์—ฌ  (0) 2022.04.10
[Git] branch ๋”ฐ๊ธฐ  (0) 2022.01.18
    'ํ˜•์ƒ๊ด€๋ฆฌ/Git' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๋‹ค๋ฅธ ๊ธ€
    • [git] ์ถฉ๋Œ๋‚  ๋•Œ, git reset HEAD —hard
    • [Git] git ignore
    • [๊นƒํ—ˆ๋ธŒ ๋ฆฌ๋“œ๋ฏธ] ๊ธฐ์ˆ ์Šคํƒ ์•„์ด์ฝ˜ ์ถ”๊ฐ€ํ•˜๊ธฐ
    • [Git]์ง€์—ญ ์ €์žฅ์†Œ์˜ ํ”„๋กœ์ ํŠธ๋ฅผ ์—…๋กœ๋“œํ•˜๋ ค๋‹ค defualt ๋ธŒ๋Ÿฐ์น˜๋Š” master๊ฐ€ ์•„๋‹ˆ๋ผ origin์ธ ๊ฑด์— ๊ด€ํ•˜์—ฌ
    Rainbow๐ŸŒˆCoder
    Rainbow๐ŸŒˆCoder
    ๋ชฐ๋ผ๋„ ๊ฒฐ๊ตญ์€ ์•„๋Š” ๊ฐœ๋ฐœ์ž, ๊ทธ๋Ÿฐ ์‚ฌ๋žŒ์ด ๋˜๊ธฐ ์œ„ํ•œ ๋งค์ผ์˜ ํ•œ๊ฑธ์Œ

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