스마트시대
gitignore관련 본문
728x90
파이썬
To make the gitignore file

Github directory먼저 만들고 거기서 Git clone http URL히여 위와 같은 파일 생성

코드 파일 옮기기
Git clone http URL하고
아래 Ignore관련코드 작성
from ..config import openai_api_key, SECRET_KEY
# Use SECRET_API_KEY in your Django settings
gitignore_openai_api_key = openai_api_key
# SECURITY WARNING: keep the secret key used in production secret!
gitignore_SECRET_KEY = SECRET_KEY


from ..config import openai_api_key

# Ignore the config.py file that stores sensitive information
/sec_django_chatbot/config.py
# Ignore any compiled Python files
*.pyc
# Ignore the __pycache__ directory
__pycache__/


openai_api_key = "actual-secret-key-value"
SECRET_KEY = "actual-secret-key-value"
끝나면
Git add --all
Git commit
Git push
순서로 진행
플러터


728x90
반응형
'Programing > Github' 카테고리의 다른 글
| Git Branch (0) | 2021.09.08 |
|---|---|
| Git hub와 연동 (0) | 2021.09.08 |
| 로컬환경에서의 깃 (0) | 2021.09.08 |
| Git and Github -1 (0) | 2021.09.08 |
Comments