git 명령어 모음
git clone [URL]
git clone -b [branch] [URL]
git remote add origin [URL]
git remote remove origin
git status
git switch [branch]
git checkout [branch]
git checkout -b [branch]
git branch -d [branch]
git branch -D [branch]
git push origin --delete [branch]
git pull origin [branch]
git add .
git commit
git commit -m [message]
git push origin [branch]
git rm -r --cached .
git config --global credential.helper 'cache --timeout=[seconds]'
git fetch origin
git reset --hard [branch]
git push master --force
.gitignore 예시
__pycache__/
.venv/
.vscode/
.idea/
*.zip
*.whl
*.pkl
*.npz
*.pth
*.txt
*.json
*.log
*.yaml
*.pdf
*.docx
*.doc
*.xlsx
*.xls
*.parquet
*.csv
*.jpg
*.jpeg
*.png
*.mp4