티스토리 뷰

RaspberryPi 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/

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

 

 

 

반응형
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/07   »
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
글 보관함