티스토리 뷰

웹프로그래밍

Git 초기작업 Barebone 예제

공허공자 2015. 1. 6. 15:40

local> ssh username@remotemachine.com

remote> cd path/to/project

remote/path/to/project> git init

remote/path/to/project> exit

local> cd path/to/local/project

local/path/to/local/project> git init

local/path/to/local/project> git add .

local/path/to/local/project> git commit -m "initial commit"

local/path/to/local/project> git checkout mybranch

local/path/to/local/project> git remote add origin username@remotemachine.com:path/to/project

local/path/to/local/project> git push origin mybranch

local/path/to/local/project> ssh username@remotemachine.com

remote> cd path/to/project

remote/path/to/project> git merge mybranch

댓글