티스토리 뷰
(macOS)[python][django][RaspberryPi] ERP platform - git
jinozpersona 2021. 4. 7. 14:40RaspberryPi update
[raspi]$ sudo apt update
[raspi]$ sudo apt upgrade : Do you want to continue?(Y/n) y
# 상세 초기 셋팅 참고 : (macOS)[Raspberry Pi] Raspbian OS 설치 및 기본 설정
# wi-fi / SSH 셋팅 참고 :(macOS)[Raspberry Pi] Raspbian wi-fi 및 SSH 설정
# 고정 IP 셋팅 참고 :(macOS)[Raspberry Pi] Raspbian wi-fi 고정 ip 및 외부접속 설정
# RaspberryPi 새로운 IP 환경 기존 셋팅 변경 참고 :(macOS)[Raspberry Pi] wi-fi 설정 및 ssh 접속 - 기존 환경 접속
git setting
1. GitHub : website에 올릴 파일 관리를 위한 원격 저장소
회원가입 및 Repositories(저장소) 생성
https://github.com/YourRepoName.git
[macOS]pyERP$ touch .gitignore
[macOS]pyERP$ nano .gitignore
.DS_Store
*.log
*.pyc
__pycache__/
db.sqlite3
2. GitHub push : macOS to GitHub repository
[macOS]pyERP$ git init
[macOS](pyERP)pyERP git:(master)$ git add .
[macOS](pyERP)pyERP git:(master)$ git status
[macOS](pyERP)pyERP git:(master)$ git commit -m "pyERP 1st test"
[macOS](pyERP)pyERP git:(master)$ git remote add origin https://github.com/YourRepoName.git
[macOS](pyERP)pyERP git:(master)$ git remote -v
origin https://github.com/YourRepoName.git (fetch)
origin https://github.com/YourRepoName.git (push)
[macOS](pyERP)pyERP git:(master)$ git push -f origin master
github site에서 확인
##참고 : git origin 제거 및 git master 종료
[macOS](pyERP)pyERP git:(master)$git remote remove origin
[macOS](pyERP)pyERP git:(master)$rm -r .git
[macOS](pyERP)pyERP$
3. GitHub pull : GitHub repository to RaspberryPi
[raspi]~/.virtualenvs/pyERP$ git init
[raspi]~/.virtualenvs/pyERP$ git remote add origin https://github.com/YourRepoName.git
[raspi]~/.virtualenvs/pyERP$ git pull
[raspi]~/.virtualenvs/pyERP$ git checkout master
'python > django_ERP1' 카테고리의 다른 글
(macOS)[python][django][RaspberryPi] ERP platform - 2 (0) | 2021.04.19 |
---|---|
(macOS)[python][django][RaspberryPi] ERP platform - 1 (0) | 2021.04.15 |
(macOS)[python][django][RaspberryPi] ERP platform - SECRET_KEY 보안설정 (0) | 2021.04.14 |
(macOS)[python][django][RaspberryPi] ERP platform - local/server Test (0) | 2021.04.14 |
(macOS)[Raspberry Pi] wi-fi 설정 및 ssh 접속 - 기존 환경 접속 (0) | 2021.03.26 |
- Total
- Today
- Yesterday
- github
- ERP
- SSH
- arduino
- server
- COVID-19
- MacOS
- Templates
- 코로나19
- sublime text
- 코로나
- 확진
- vscode
- DAQ
- raspberrypi
- CSV
- Python
- analysis
- Model
- template
- 라즈베리파이
- 자가격리
- git
- r
- Raspberry Pi
- Regression
- pyserial
- Django
- DS18B20
- Pandas
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |