티스토리 뷰

Others

github 시작하기

해구름 2017. 11. 14. 23:07
반응형
  1. github에 가입하고, Project를 생성한다.
    https://github.com/
  2. git를 설치한다.
    https://rogerdudler.github.io/git-guide/index.ko.html
  3. git저장소 폴더를 하나 생성한다
    mkdir D:/Sources/github
  4. GitGui를 실행하여, Clone Existing Repository를 실행한다.
  5. 다음과 같이 입력 후 Clone를 클릭하면, Clone이 시작된다.
  6. 만약 여기서 다음과 같은 오류가 발생한다면, libcurl.dll에서 https를 지원하지 않아 발생하는 것이므로 libcurl.dll을 삭제해야 한다.
    오류내용 fatal: unable to access 'https://~~~': Protocol https not supported or disabled in libcurl
    1. 32Bit:C:\Windows\System32\libcurl.dll
    2. 64Bit:C:\Windows\SysWOW64\libcurl.dll
  7. 이제부터 git를 통해 코드관리가 가능하다.
  8. 여기서부터는 AndroidStudio VSC기능을 사용할 수 있다. 먼저, 위에서 설정한 git폴더에 프로젝트를 생성하거나, 프로젝트를 연다.
  9. AndroidStudio에서 VSC/Enable Version Control Integration을 클릭한다.
  10. Git을 선택하고 OK를 클릭한다. 이제부터 LocalRepository에서 코드관리가 가능하다.
  11. Github로 pull, push까지 수행하려면, FIle/Settings를 클릭하고, Version Control/GitHub 항목에서 ID/PW를 입력한다.


댓글