μ 체 κΈ
-
[Git] Relative References2023. 8. 5. 02:16
βοΈ Relative References (μλ μ°Έμ‘°) - Gitμ HEADλ₯Ό λ°κΏ λ, 컀λ°μ ν΄μλ₯Ό μ¬μ©νλ λ°©λ²μ λ²κ±°λ‘λ€. λλ¬Έμ μλ μ°Έμ‘°λ₯Ό ν λΈλμΉ μ΅μ μ»€λ° μ§μ μμ λ€λ₯Έ μ§μ μΌλ‘ λλ¬ν΄ μμ μ ν μ μλ€. π μ»€λ° ν΄μκ° νμΈ git log - μ€μ¬ Git ν΄μλ λ§€μ° κΈΈκΈ° λλ¬Έμ ν΄μκ° μ»€λ°μ κ³ μ ν κ°μμ 보μ¬μ€ μ μλ λ§νΌλ§ λͺ μν΄μ£Όλ©΄ λλ€. fed2da64c0efc5293610bdd892f82a58e8cbc5d8 ππ» fed2 π ν μ»€λ° μλ‘ μ΄λ (^) git checkout main^ - HEADμμλ μλ μ°Έμ‘°λ₯Ό μ΄μ©ν΄ ν μ»€λ° μλ‘ μ΄λ κ°λ₯νλ€. git checkout HEAD^ πn λ²μ©¨ λΆλͺ¨ 컀λ°μΌλ‘ μ΄λ (^n) git checkout HEAD^2 π μ¬λ¬ 컀λ°..
-
[Git] HEAD2023. 8. 4. 01:56
βοΈ HEAD - HEADλ νμ¬ μ²΄ν¬μμ΄λ 컀λ°. μ¦ νμ¬ μμΉν 컀λ°μ λ§νλ€. - HEADλ νμ κ°μ₯ μ΅κ·Ό 컀λ°μ κ°λ¦¬ν¨λ€. git checkout C1 - 컀λ°μ ν΄μκ°μ μ΄μ©ν΄ checkoutμ μννλ€λ©΄ μνλ μ»€λ° μμΉμμ μλ‘μ΄ μμ μ μμνκΈ° μ©μ΄νλ€.
-
[Git] Branch2023. 8. 1. 01:29
βοΈ Branch - λΆλͺ¨ 컀λ°λ€μ ν¬ν¨νλ μμ λ΄μμ 컀λ°ν μ μλ κΈ°λ₯ - λΈλμΉλ λ§μ΄ λ§λ€μ΄λ λ©λͺ¨λ¦¬λ λμ€ν¬ 곡κ°μ λΆλ΄μ΄ κ°μ§ μλλ€. λ°λΌμ, ν° λΈλμΉλ‘ μμ νλ κ²λ³΄λ€, μμ λ¨μλ‘ λλμ΄ μ¬μ©νλ κ²μ μΆμ²νλ€. π λΈλμΉ μμ± git branch [μμ±ν λΈλμΉ λͺ ] π λΈλμΉ μ΄λ git checkout newImage newImageμμ 컀λ°μ μννλ©΄ main λΈλμΉμ κΈ°λ‘μ μ μ§ν μ±, newImage λΈλμΉμμ μλ‘μ΄ μμ μ κΈ°λ‘ν μ μλ€.
-
[Git] Commit2023. 7. 31. 00:28
Learn Git Branching An interactive Git visualization tool to educate and challenge! learngitbranching.js.org μ μ¬μ΄νΈ 컀리νλΌμ λ°λΌ μ 리ν΄λκ° μμ μ΄λ€. βοΈ Commit - λͺ¨λ νμΌμ λν μ€λ μ·μ κΈ°λ‘νλ κ² - μ¦, μ΄μ λ²μ κ³Ό λ€μ λ²μ μ λ³κ²½λ΄μμ μ μ₯ git commit π commit message - ν΄λΉ commitμ λν μ€λͺ , μ£Όμμ λ¨κΈ°κΈ° μν΄μλ -m μ΅μ μ μ¬μ©νλ©΄ λλ€. git commit -m "컀λ°μ λ¨κΈ°λ μ΄μ "
-
Kotlin π¬ λ°±μ€ 13λ¨κ³ :: 10814 λ²2023. 7. 25. 00:36
λμ΄μ μ λ ¬ λ¬Έμ | μ¨λΌμΈ μ μ§μ κ°μ ν μ¬λλ€μ λμ΄μ μ΄λ¦μ΄ κ°μ ν μμλλ‘ μ£Όμ΄μ§λ€. μ΄λ, νμλ€μ λμ΄κ° μ¦κ°νλ μμΌλ‘, λμ΄κ° κ°μΌλ©΄ λ¨Όμ κ°μ ν μ¬λμ΄ μμ μ€λ μμλ‘ μ λ ¬νλ νλ‘κ·Έλ¨μ μμ±νμμ€. μ λ ₯ | 첫째 μ€μ μ¨λΌμΈ μ μ§ νμμ μ Nμ΄ μ£Όμ΄μ§λ€. (1 ≤ N ≤ 100,000) λμ§Έ μ€λΆν° Nκ°μ μ€μλ κ° νμμ λμ΄μ μ΄λ¦μ΄ 곡백μΌλ‘ ꡬλΆλμ΄ μ£Όμ΄μ§λ€. λμ΄λ 1λ³΄λ€ ν¬κ±°λ κ°μΌλ©°, 200λ³΄λ€ μκ±°λ κ°μ μ μμ΄κ³ , μ΄λ¦μ μνλ²³ λμλ¬Έμλ‘ μ΄λ£¨μ΄μ Έ μκ³ , κΈΈμ΄κ° 100λ³΄λ€ μκ±°λ κ°μ λ¬Έμμ΄μ΄λ€. μ λ ₯μ κ°μ ν μμλ‘ μ£Όμ΄μ§λ€. μΆλ ₯ | 첫째 μ€λΆν° μ΄ Nκ°μ μ€μ κ±Έμ³ μ¨λΌμΈ μ μ§ νμμ λμ΄ μ, λμ΄κ° κ°μΌλ©΄ κ°μ ν μμΌλ‘ ν μ€μ ν λͺ μ© λμ΄μ μ΄λ¦μ 곡백μΌλ‘..
-
Kotlin π¬ λ°±μ€ 13λ¨κ³ :: 1181 λ²2023. 7. 24. 00:25
Hello World λ¬Έμ | μνλ²³ μλ¬Έμλ‘ μ΄λ£¨μ΄μ§ Nκ°μ λ¨μ΄κ° λ€μ΄μ€λ©΄ μλμ κ°μ 쑰건μ λ°λΌ μ λ ¬νλ νλ‘κ·Έλ¨μ μμ±νμμ€. 1. κΈΈμ΄κ° 짧μ κ²λΆν° 2. κΈΈμ΄κ° κ°μΌλ©΄ μ¬μ μμΌλ‘ λ¨, μ€λ³΅λ λ¨μ΄λ νλλ§ λ¨κΈ°κ³ μ κ±°ν΄μΌ νλ€. λ¬Έμ | 첫째 μ€μ λ¨μ΄μ κ°μ Nμ΄ μ£Όμ΄μ§λ€. (1 ≤ N ≤ 20,000) λμ§Έ μ€λΆν° Nκ°μ μ€μ κ±Έμ³ μνλ²³ μλ¬Έμλ‘ μ΄λ£¨μ΄μ§ λ¨μ΄κ° ν μ€μ νλμ© μ£Όμ΄μ§λ€. μ£Όμ΄μ§λ λ¬Έμμ΄μ κΈΈμ΄λ 50μ λμ§ μλλ€. λ¬Έμ | 쑰건μ λ°λΌ μ λ ¬νμ¬ λ¨μ΄λ€μ μΆλ ₯νλ€. νμ΄ | sortedWith()μ μΈμλ‘ compareBy()λ₯Ό μ¬μ©νλ€. λ΅μ | import java.util.Scanner fun main() = with(Scanner(System.`in`)) { ..