github에 현재 프로젝트 올리기

1. github에 Repository를 생성한다.

2. Terminal에서 순서대로 입력합니다.

➜  spirngdata git init
/Users/chopokmado/workspace/workspace-git/spirngdata/.git/ 안의 빈 깃 저장소를 다시 초기화했습니다
➜  spirngdata git:(master) ✗ git add .
➜  spirngdata git:(master) ✗ ll
total 72
drwxr-xr-x  12 chopokmado  staff   384 Jan  6 22:36 .
drwxr-xr-x   7 chopokmado  staff   224 Dec 23 18:39 ..
drwxr-xr-x  10 chopokmado  staff   320 Jan  6 22:36 .git
-rw-r--r--   1 chopokmado  staff   268 Jan  6 18:49 .gitignore
drwxr-xr-x   6 chopokmado  staff   192 Jan  6 18:50 .idea
-rw-r--r--   1 chopokmado  staff  2125 Jan  6 18:49 pom.xml
drwxr-xr-x   4 chopokmado  staff   128 Jan  6 18:49 src
➜  spirngdata git:(master) ✗ git commit -m "test"
[master (최상위-커밋) 11b3833] test
 22 files changed, 993 insertions(+)
 create mode 100644 .gitignore
 create mode 100644 pom.xml
 create mode 100644 src/test/java/com/dasolute/simons/springdata/repository/PostRepositoryTest.java
➜  spirngdata git:(master) git remote add origin https://github.com/simongs/jpa_sample_code.git
➜  spirngdata git:(master) git push -u origin master
오브젝트 나열하는 중: 43, 완료.
오브젝트 개수 세는 중: 100% (43/43), 완료.
Delta compression using up to 12 threads
오브젝트 압축하는 중: 100% (32/32), 완료.
오브젝트 쓰는 중: 100% (43/43), 54.25 KiB | 10.85 MiB/s, 완료.
Total 43 (delta 3), reused 0 (delta 0)
remote: Resolving deltas: 100% (3/3), done.
To https://github.com/simongs/jpa_sample_code.git
 * [new branch]      master -> master
'master' 브랜치가 리모트의 'master' 브랜치를 ('origin'에서) 따라가도록 설정되었습니다.
➜  spirngdata git:(master)

3. SourceTree 에서 로컬 디렉토리를 로딩합니다.

4. GitFlow를 적용합니다.

  • SourceTree 상단 메뉴에서 오른쪽 클릭 후 Customizing 을 통해 Git Flow 버튼을 노출시킵니다.
  • Git Flow 적용 후 develop 브랜치를 원격에 Push해줍니다.