Skip to content

seowonks/first_git

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

322 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

first_git

Git < Pull-Request >

  • ๊ณต๋™์˜ git -> fork

  • ๋‚ด repo name ํ•˜๋‹จ์— ๊ณต๋™์˜ git ์ฃผ์†Œ ํ™•์ธ

  • ๋‚ด repo์—์„œ clone (๋‚ด repo git ์ฃผ์†Œ)
    ;clone ํ•  ๊ฒฝ์šฐ ์ž๋™ ์ƒ์„ฑ -> git init & git remote add origin (๋‚ด repo git ์ฃผ์†Œ)

  • git remote add upstream (๊ณตํ†ต์˜ repo git ์ฃผ์†Œ)
    ; upstream ์ด๋ผ๋Š” branch ์ƒ์„ฑ //remote๋Š” ์ž‘์—… ์ „ํ›„ ์ˆœ์„œ ๋ฌด๊ด€
    //upstream branch ์ƒ์„ฑํ•œ ์ด์œ  ; ์ถฉ๋Œ์‹œ pull ํ›„ ์ถฉ๋™ ํ•ด๊ฒฐํ•˜๊ธฐ ์œ„ํ•ด

  • ์ž‘์—… ํ›„ add-commit -> push ํ•  ๊ฒฝ์šฐ branch๋ช…์„ ์œ ์˜ํ•ด์•ผํ•จ
    ; push ๋‚ด repo์— ํ•ด์ฃผ์–ด์•ผํ•จ //๋‚ด repo๋กœ pushํ•ด์„œ pull-request ํ•˜๋Š” ์ˆœ์„œ
    git push origin master - > pull-request


pull-request ์ถฉ๋Œ ํ•ด๊ฒฐ

  • git pull upstream master (๊ณตํ†ต ์ž‘์—…์„ ์ˆ˜์ •ํ•ด์•ผํ•จ)
  • ์ถฉ๋Œ ํ•ด๊ฒฐ ํ›„
    ์ž‘์—… ํ›„ add-commit -> push ํ•  ๊ฒฝ์šฐ branch๋ช…์„ ์œ ์˜ํ•ด์•ผํ•จ
    ; push ๋‚ด repo์— ํ•ด์ฃผ์–ด์•ผํ•จ
    git push origin master - > pull-request

๋ช…๋ น์–ด

  • ls : ํŒŒ์ผ list
  • ls - a : ์ˆจ๊ฒจ์ง„ ํŒŒ์ผ list๊นŒ์ง€ ๋ชจ๋‘
  • cd : ์ƒ์œ„ ํด๋”๋กœ ์ด๋™
  • pwd : ํ˜„์žฌ ์ž‘์—… ๊ฒฝ๋กœ
  • git remote โ€“v
  • git branch : ํ˜„์žฌ ์–ด๋–ค branch ์œ„์น˜ํ•˜๋Š”์ง€

Branch

; ํ˜„์žฌ ์ž‘์—… ์ค‘์ธ ํŒŒ์ผ์ด ์•„๋‹Œ ํ˜„์žฌ ์ž‘์—…๊ณผ ๋™์ผํ•œ ๋‚ด์šฉ์˜ ๊ฐ€์ง€๋ฅผ ์ณ ๋ณธ๋ž˜ ์ž‘์—…์— 	merge    

//๋ณธ ์ž‘์—…์„ ๊ฑด๋“ค์ง€ ์•Š๊ณ  ์ˆ˜์ •์‚ฌํ•ญ์„ ํ™•์ธํ•ด๋ณผ ์ˆ˜ ์žˆ์Œ
//merge -> ๋ณธ ์ž‘์—…์— ์ˆ˜์ •ํ•œ ์‚ฌํ•ญ์„ ์—…๋ฐ์ดํŠธ

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors