μΌ | μ | ν | μ | λͺ© | κΈ | ν |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
- 리μ‘νΈ
- μλλ‘μ΄λμ€νλμ€
- Git
- Kaggle
- κ²°μ νΈλ¦¬
- λ°μ΄ν°μκ°ν
- c++
- μνμ½λ©
- λΆμ
- μλ² λ©
- AI
- λ°±μ€
- μκ³ λ¦¬μ¦
- λμ
- μ νλμν
- λ°μ΄ν°λΆμ
- cs231n
- νκ΅μ΄μλ² λ©
- λ¨Έμ λ¬λ
- react
- native
- Titanic
- linearalgebra
- νμ΄νλ
- λ€μ΄ν°λΈ
- μΈνλ°
- nlp
- λ₯λ¬λ
- λ°μ΄ν°
- κΉν
- Today
- Total
λͺ©λ‘Git (6)
yeon's π©π»π»

+++ ν΄λ μ 체λ₯Ό μ λ‘λ νλ €λ©΄ ν΄λΉ ν΄λμ μμ ν΄λμμ μμ νκΈ° git config --global user.name "μ΄λ¦" git config --global user.email "μ΄λ©μΌ" git clone "λ ν¬μ£Όμ" κ·Έλ΄ clone λ°μ μ£Όμμμ μμ νκΈ° git remote add origin "λ ν¬ μ£Όμ" (git remote -v λ‘ νμΈ) (μ§μ°λ €λ©΄ git remote rm origin) git add μνλ νμΌ (git add .) git commit -m "μ»€λ° λ©μμ§" git push -u origin main κΉ ............ μ§γ΄μ§ μ£½μΌκΉ .......... κ³μ κ³μ κ³μ μ€λ₯κ° λ μ repo λ§λ€κ³ μνν΄λ³΄κ³ λ§λ€κ³ μνν΄λ³΄κ³ ......... 2μκ°λ§μ ν΄κ²° ...
https://yongku.tistory.com/entry/VS-CodeVisual-Studio-Code%EC%97%90%EC%84%9C-%EA%B9%83-clone-commit-push-%ED%95%98%EB%8A%94-%EB%B0%A9%EB%B2%95 VS Code(Visual Studio Code)μμ κΉ clone, commit, push νλ λ°©λ² μΈλ₯΄μ¬λ €κ³ μ½λ©νλμ§μ¬μ λλ€. VS Code(Visual Studio Code)μμ κΉ clone, commit, push νλ λ°©λ² VS Code(Visual Studio Code)μμ κΉ clone, commit, push νλ λ°©λ²μ λλ€. VS Code(Visual Studi.. yongku.tistory.com μ°Έκ³ ν΄μ λ무 μ νμμ΅λλ€ !!..

Stage area gitμ commit νκΈ° μ μ addλ₯Ό κΌ ν΄μΌ νλ€. Why? -> μ νμ μΌλ‘ νμΌμ λ²μ μ ν¬ν¨μν€κΈ° μν΄μ -> μ¬λ¬ μμ λ νμΌλ€ μ€ commitνκ³ μ νλ νμΌλ§ commit ν μ μλ€. λ¨Όμ νμΌμ 볡μ¬ν΄λ³΄κΈ° - μ°λ¦¬λ λ νμΌ μ€ νλλ§ commit ν κ²μ΄λ€. cp f1.txt f2.txt νμ¬ μν νμΈνκΈ° git status - 볡μ¬ν f2.txtλ μμ§ commitνμ§ μμμΌλ―λ‘ Untracked (λ²μ κ΄λ¦¬κ° λκ³ μμ§ μμ) μνμ΄λ€. λ²μ κ΄λ¦¬ μμνκΈ° git add f2.txt git status μ»€λ° λ©μμ§ μμ± git commit - 3μ΄λΌλ λ©μμ§λ₯Ό μμ±νλ€. λ‘κ·Έ(μμ¬) νμΈ git log - μλ¨μ μλ‘μ΄ μ»€λ° λ©μμ§κ° μΆκ°λ κ²μ νμΈν μ μλ€..

λ²μ λ§λ€κΈ° (commit) λ²μ (Version) vs. λ³ν λ²μ μ μλ―Έμλ λ³νλ€. (μ΄λ€ μμ μ΄ μκ²°λ μν) λ²μ μ ν¬ν¨λ λ²μ μ λ§λ μ¬λμ λν μ 보 μ€μ νκΈ° (ν λ²λ§ ν΄μ£Όλ©΄ λ¨) git config --global user.name "μμ μ λλ€μ" git config --global user.email "μμ μ μ΄λ©μΌ" commit git commit - git statusλ₯Ό ν λ λμ€λ μ 보λ₯Ό μλ €μ€λ€. - git commit μ€ν ν νμ¬ λ²μ μ λ©μμ§λ₯Ό μ λλ€. * λ²μ λ©μμ§λ? μ΄ λ³νκ° μ΄λ€ λ³νλ₯Ό λ΄κ³ μλμ§ & μ΄ νμΌλ€μ΄ μ λ³κ²½λμλμ§ κ·Έ μ΄μ λ₯Ό μμ± - f1.txt λΌλ νμΌμ΄ μλ‘μ΄ λ²μ μ΄ λμλ€ ~ λ₯Ό μλ―Έ git log - commitν λ΄μ© νμΈ κ°λ₯ νμΌμ ..