공부방/Upstage AI Lab 4기
[git] gitignore을 먼저 만들어두고 레파지토리에 연결
Eddie_D
2025. 1. 29. 23:24
.gitignore 파일을 먼저 만듭니다:
# .gitignore 파일 내용
*.env
openai_key.env
__pycache__/
*.pyc
.DS_Store
venv/
그 다음에 git 초기화부터 시작
# git 초기화
git init
# 파일 스테이징
git add .
# 첫 커밋 생성
git commit -m "Initial commit"
# 메인 브랜치를 main으로 변경
git branch -M main
# GitHub 레포지토리 연결
git remote add origin https://github.com/hannakhw/Interview_chatbot.git
# 푸시
git push -u origin main
안그러면 개꼬인다