안드로이드 스튜디오에서 IntelliJ에서 git사용하기 최초 설정하는법

Posted by HULIA(휴리아)
2017. 3. 28. 01:23 프론트엔드/안드로이드

1. 윈도우 git 설치

https://git-scm.com


2. 안드로이드나 IntelliJ에서 git 설정을 해줘야 할 수 있음

File -> Settings -> version control -> git

git 설정해줌


3. git서버(gitlab, butbucket, github)에서 repository를 생성하기


4. VCS - Enable Version Control Integration

Select a version control system to associated with the project root : Git으로 선택

프로젝트에서 파일들이 빨간색으로 변하는 것을 확인 


5. VCS - Git - Remotes에 git서버 주소를 넣는다


6. 프로젝트 상단 - Git - Add

파일들이 초록색으로 변경되는 것을 확인


7. 프로젝트 상단 - Git - Commit Directory 

commit and push 선택함(아래에 두가지 일이 한번에 수행)

git commit : local repository에 추가

git push : remote repository에 추가


파일들이 회색으로 변하는 것을 확인