github site 에서 가입을 합니다.
가입후 이메일 인증을 합니다.
// 작성중인 문서! 2018-03-31
우측상단의 New repository 를 클릭하여 repository 를 생성합니다.
Owner 부분의 bksanjuk 이 github id 이며 Repository name 부분에 test로 설정 했습니다.
(Project name 에 맞게 설정 하시면 됩니다.)
기본적으로 repository 를 만들면 Public 으로 만들게 됩니다. AWS 등 Cloud Service 이용시 운영하는 System / DB 등의 Password 부분이 Commit 되지 않게 사용하셔야 합니다.
Repository name 을 설정 하였으면 Create repository 를 클릭하여 설정을 마무리 합니다.
설정이 마무리 되었습니다.
github 에 commit 할 디렉토리를 생성 합니다.
test@ubuntu-test:~$ mkdir test test@ubuntu-test:~$ cd test/
…or create a new repository on the command line
test@ubuntu-test:~/test$ echo "# test" >> README.md test@ubuntu-test:~/test$ git init Initialized empty Git repository in /home/test/test/.git/ test@ubuntu-test:~/test$ git add README.md test@ubuntu-test:~/test$ git config --global user.email "bksanjuk@test.com" test@ubuntu-test:~/test$ git config --global user.name "bksanjuk" test@ubuntu-test:~/test$ git commit -m "first commit" [master (root-commit) fb6376b] first commit 1 file changed, 1 insertion(+) create mode 100644 README.md test@ubuntu-test:~/test$ git remote add origin https://github.com/bksanjuk/test.git test@ubuntu-test:~/test$ git push -u origin master Username for 'https://github.com': bksanjuk Password for 'https://bksanjuk@github.com': Counting objects: 3, done. Writing objects: 100% (3/3), 213 bytes | 0 bytes/s, done. Total 3 (delta 0), reused 0 (delta 0) To https://github.com/bksanjuk/test.git * [new branch] master -> master Branch master set up to track remote branch master from origin. test@ubuntu-test:~/test$