ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • git cherry-pick ์ฒด๋ฆฌํ”ฝ ์จ๋ณด๊ธฐ
    code/github 2023. 10. 20. 11:39

    git cherry-pick๐Ÿ’

    ๋‹ค๋ฅธ ๋ธŒ๋žœ์น˜์— ์žˆ๋Š” ์ปค๋ฐ‹์„ ์„ ํƒํ•˜์—ฌ ๋‚ด ๋ธŒ๋žœ์น˜์— ์ ์šฉ์‹œํ‚ฌ ๋•Œ ์‚ฌ์šฉํ•˜๋Š” ๋ช…๋ น์–ด

    git cherry-pick d090a8b[์ปค๋ฐ‹ID]

    ์ž๋™ ๋ณ‘ํ•ฉ: -[ํŒŒ์ผ๊ฒฝ๋กœ]-/ChatRoomView.swift
    error: ๋‹ค์Œ์„ ์ ์šฉํ• (apply) ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค: d090a8b... [Fix] ์ด์ „ ์ฑ„ํŒ…๋ฐฉ์ด ๋ณด์ด๋Š” ์˜ค๋ฅ˜ ์ˆ˜์ •
    ํžŒํŠธ: After resolving the conflicts, mark them with
    ํžŒํŠธ: "git add/rm <pathspec>", then run
    ํžŒํŠธ: "git cherry-pick --continue".
    ํžŒํŠธ: You can instead skip this commit with "git cherry-pick --skip".
    ํžŒํŠธ: To abort and get back to the state before "git cherry-pick",
    ํžŒํŠธ: run "git cherry-pick --abort".

     

    git cherry-pick --continue


    error: ๋ณ‘ํ•ฉํ•˜์ง€ ์•Š์€ ํŒŒ์ผ์ด ์žˆ์œผ๋ฏ€๋กœ, ์ปค๋ฐ‹ํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค.
    ํžŒํŠธ: ์ž‘์—… ํด๋”์—์„œ ๋ฌธ์ œ๋ฅผ ๋ฐ”๋กœ์žก์€ ๋‹ค์Œ, 'git add/rm <ํŒŒ์ผ>'์„ ์ ์ ˆํžˆ
    ํžŒํŠธ: ์‚ฌ์šฉํ•ด ํ•ด๊ฒฐ ํ‘œ์‹œํ•˜๊ณ  ์ปค๋ฐ‹ํ•˜์‹ญ์‹œ์˜ค.
    fatal: ํ•ด๊ฒฐํ•˜์ง€ ๋ชปํ•œ ์ถฉ๋Œ ๋•Œ๋ฌธ์— ๋๋‚ฉ๋‹ˆ๋‹ค.

     

     

    -> xcode์—์„œ ์ปจํ”Œ๋ฆญ ๋‚œ๊ฑฐ ํ•ด๊ฒฐํ•ด์ฃผ๊ณ ์˜ด

    git add [ํŒŒ์ผ๊ฒฝ๋กœ๋ช…์„ธ]/ChatRoomStore.swift

     

    git cherry-pick --continue

    commit log ์–ด๋–ป๊ฒŒ ๋‚จ๊ธธ๊ฑด์ง€ ๋‚˜ํƒ€๋‚˜๊ณ  ํ…์ŠคํŠธ ํŽธ์ง‘๊ธฐ ๋‹ซ์•„์ฃผ๋ฉด ์ปค๋ฐ‹ ์™„๋ฃŒ 

     

    'code > github' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๋‹ค๋ฅธ ๊ธ€

    Pull Request, Merge, git pull ์ „๋žต(--rebase, --ff-only)  (0) 2023.07.22
Designed by Tistory.