:::: 개발 ::::/::: Git :::

git remote 올리고 받기

nayha 2017. 11. 26. 21:59

아래 모두 설정후 간간히 푸시 엔드 풀

로컬 에서는 작업한 소스

git push


서버 에서는 작업한 소스 받기


git pull




====================설치 방법 =============================================================



https://git-scm.com/  >> 다운받으러 가기


git 윈도우용 다운로드 아래 빨간색 부분


save image




git 올리고 싶은곳 폴더 찾아가서

$ git init
Initialized empty Git repository in ~/해당폴더/.git/
$ git config --global user.name "Your Name"
$ git config --global user.email you@example.com


git 전송 제외 파일 처리

.gitignore

*.pyc
*~
__pycache__
myvenv
db.sqlite3
/static
.DS_Store

현재 git 상태

git status

git add & git add

git add --all 
git commit -m "My first commit"


GitHub에  배포하기

GitHub.com에서 새 무료 계정을 만드세요


$ git remote add origin https://github.com/<your-github-username>/project.git
$ git push -u origin master

아래와 같은 화면이 나오면 GitHub 사용자이름과 암호를 입력하세요. :




** Git이란 "버전 관리 시스템(version control system)"

반응형