내 컴퓨터에서 코드의 시간을 되돌리거나, 특정 시점을 기록하는 버전 관리 도구
인터넷 불필요
타임머신을 타고 온 코드들이 모여 다른 사람들과 협업하는 클라우드 저장소
인터넷 필요
git init
.git 폴더가 생성됨Git 저장소가 됨git add ., git status
git commit -m "<commit name>"
git log
git remote add origin <remote repository>
git push -u <remote name, 기본값: origin> <branch name, 기본값: main>
1) clone
Remote Repository → My Computer
원격 저장소를 내 컴퓨터로 복제
2) fork
Other's Repository → My GitHub Account → My Computer
타인의 저장소를 내 저장소로 가져온 후 내 컴퓨터로 복제
pull
git pull origin mainfetch

git branch feature-logingit switch feature-login
git switch main
git merge feature-login
충돌(conflict)

병합 요청
push: 작업한 브랜치를 GitHub에 업로드main에 합쳐달라는 요청Merge: 승인 후 병합 클릭| 시작 | `$ git init` `$ git clone` |
|---|---|
| 변경 | `$ git add .` `$ git commit -m` `$ git status` |
| 동기화 | `$ git push` `$ git pull` `$ git remote add` |
| 분기 | `$ git branch` `$ git switch` `$ git merge` |
YAML 형식으로 작성됨YAML이란?
key,value로 이루어짐- 들여쓰기가 중요함
들여쓰기는 스페이스로 이루어지며 보통 2칸으로 작성함
시스템 프롬프트
유저 프롬프트
---
title: "내 블로그 포스트"
date: 2024-01-01
author: "홍길동"
tags: [python, programming]
---
여기서부터 본문 내용...
trigering point