Git guide- https://rogerdudler.github.io/git-guide/index.ko.html
Git 저장소 만들기 - git init
폴더를 하나 만들고, 그 안에서 git init 을 실행.
Git 저장소 받아오기 - git clone /로컬/저장소/경로
git clone 사용자명@호스트:/원격/저장소/경로
Working direcotry, Working copy -> add
Unstaged / Staged(Index),
Uncommitted changes/ HEAD(commit)
Git Commit - only local / Push - remote
Commit
git add <파일 이름>, git add * , git commit -m “comment”(HEAD 에 반영)
원격 저장소에 아직 반영(push) 안됨
CVS, SVN 과 차이가 있음.
SourceTree 에서는 Commit 후 Push 를 진행해야만 함.
Push 시에 원격 저장소에 변경사항이 있을 경우 git pull 을 먼저 진행해야함.
Eclipse 에서는 Commit and push 로 한번에 진행할 수 있음.
git push origin master - 원격서버의 master 에 push
git remote add origin <원격 서버 주소> - 최초, 다른 저장소의 경우
'Programming > Git' 카테고리의 다른 글
[Git] Branch / Merge / Tag (0) | 2017.08.02 |
---|---|
[Git] Git guide- https://rogerdudler.github.io/git-guide/index.ko.html (0) | 2017.08.02 |
[Git] Git 설치 - git-scm.com (1) | 2017.08.02 |
[Git] Git 기초 (0) | 2017.07.25 |
[Git] GIT 사용법 - the stupid content tracker (0) | 2017.07.25 |