π
dp = dict() max(dp)
μμ κ°μ΄ max(dict) λ₯Ό νκ² λλ©΄ dictionaryμ max key κ°μ΄ λμ€κ² λλ€.
π
dp = {'a': 0, 'b': 1, 'c': 2, 'd': 3} # μ§μ μμ±
dp = dict(zip('abcd',range(4))) # zip ν¨μλ₯Ό μ¬μ©ν΄ dict μμ±
π‘ git stash -m 'μμ λ΄μ©' -μμ μ μ₯
git stash list -> μμμ μ₯ νλͺ©λ€μ΄ 보μ
git stash apply (fullname) - μ μ©νκΈ°
git stash drop (fullname) - μ§μ°κΈ°
π‘ git diff - κ°μ₯ μ΅μ 컀λ°κ³Ό νμ¬ λ³κ²½μ¬νμ 보μ¬μ€λ€.
git diff ν΄μ1 ν΄μ2 νλ©΄ ν΄μ1μ κΈ°μ€μΌλ‘ ν΄μ2κ° λκ° λ¬λΌμ‘λμ§ λ³΄μ¬μ€λ€.
π‘ git log - λ‘κ·Έ 보기
git log --oneline - λ‘κ·Έ νμ€μ© 보기
π‘ git commit --amend μ»€λ° μμ νκΈ°
λλ리기
π‘ revert - μ΄μ 컀λ°μ λ€μ 컀λ°μΌλ‘ μΆκ°νμ¬ μ·¨μ νλκ²μ΄ μλ λλλ¦° κ²μ μμΌλ‘ 보λ΄λ κ²
git revert (μ·¨μν μ»€λ° ν΄μ)
π‘ reset - μ΄μ 컀λ°μΌλ‘ λλ리λ κ²
git reset (λλμκ° μ»€λ° ν΄μ)
git reset (--mixed) - default
git reset --hard
git reset --soft
soft reset - 컀λ°κΉμ§ λλλ¦Ό
mixed reset - μ€ν μ΄μ§ μΆκ° κΉμ§ λλλ¦Ό
hard reset - μΉλ€ λλλ¦Ό