ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • [Git] HEAD
    2023. 8. 4. 01:56
    λ°˜μ‘ν˜•

    ✏️ HEAD

    - HEADλž€ ν˜„μž¬ μ²΄ν¬μ•„μš΄λœ 컀밋. 즉 ν˜„μž¬ μœ„μΉ˜ν•œ 컀밋을 λ§ν•œλ‹€.

    - HEADλŠ” 항상 κ°€μž₯ 졜근 컀밋을 가리킨닀.

     

    HEAD -> main -> C1

     

    git checkout C1

     

    λͺ…λ Ήμ–΄λ₯Ό μ‚¬μš©ν•œ λ’€ HEAD -> C1

     

    - μ»€λ°‹μ˜ ν•΄μ‹œκ°’μ„ μ΄μš©ν•΄ checkout을 μˆ˜ν–‰ν•œλ‹€λ©΄ μ›ν•˜λŠ” 컀밋 μœ„μΉ˜μ—μ„œ μƒˆλ‘œμš΄ μž‘μ—…μ„ μ‹œμž‘ν•˜κΈ° μš©μ΄ν•˜λ‹€.

    λ°˜μ‘ν˜•

    '✏️ Git > πŸ”Ž λͺ…λ Ήμ–΄' μΉ΄ν…Œκ³ λ¦¬μ˜ λ‹€λ₯Έ κΈ€

    [Git] Reset & Revert  (0) 2023.08.06
    [Git] Relative References  (0) 2023.08.05
    [Git] Rebase  (0) 2023.08.03
    [Git] Merge  (0) 2023.08.02
    [Git] Branch  (0) 2023.08.01

    λŒ“κΈ€

Designed by Tistory.