TechTogetWorld


 daviduino.co.kr

techtogetworld.com

 david201207.blog.me

cafe.naver.com/3dpservicedavid


[web sever 구축_파이선_DJANGO #2 ] 버전/백업관리를 위한 GIT 활용


글의순서는 아래와 같습니다.

==========================================

1. GIT에 등록하기(commit)

2. GITHUB 원격저장소 만들기

3. GITHUB 원격저장소에  git 에 commit 되어있는 file을 원격 저장하기]

4. 참고자료

https://opentutorials.org/course/1492

https://programmers.co.kr/learn/courses/6

http://hackersstudy.tistory.com/41

==========================================


[GIT에 등록하기]


SOURCETREE  설치하기

 - 그래픽환경의 GIT 프로그램

GIT 저장소 만들기

 - FILE ==>CLONE,NEW... ==> Create new respository

 - type : git

 - destination path : 노트북에 프로젝트 폴더를 만든다

GIT 저장소에 화일 저장하기

 - 웹프로그램 화일을 프로젝트 폴더에 넣는다.

 - unstaged 상태인 화일을 선택해서, staged 상태로 만들고, commit을 한다

 - commit과 동시에 버전관리가 시작된다

편집기(atom)에 프로젝트 폴더 등록하기

 - add project folder

 - atom에서 작업하는 내용은 git 프로젝트에 실시간으로 동기화 된다.


[GITHUB 원격저장소 만들기]

GITHUB 계정을 만든다

NEW rapositiry

 - rapagitory name 지정

 - public

 - create rapository

NEW rapositiry 접근 주소 확인 (http용)...............A



[GITHUB 원격저장소에  git 에 commit 되어있는 file을 원격 저장하기]


git 프로그램(sourcetree)으로 이동해서 

rapository => add remote ==> url/path 지정(글의 A 주소 지정) =>Remote name 지정 ( 최초시 origial 선택) ==>ok

sourcetree 좌측 메뉴에 remote 부분에 origin 등록된건 확인

llocal 저장소의 화일을 원격저장소로 옮기기 위해

 - push 버튼 실행

github 화면으로 화서 화면 refresh를 하면, 화일이 저장되어있는것을 확인


 








[ 참고자료 ]


https://opentutorials.org/course/1492

https://programmers.co.kr/learn/courses/6