Github을 remote repository로 쓰고 싶다는 가정하에 프로세스를 정리해보겠습니다.
[Github] Remote repository 생성
private으로 설정~
settings에서 collaborators 초대~
git clone 주소 복사~
[Mac] Local repository 생성
로컬에 생성하고자하는 위치로 이동하고 clone
// 예시
cd {폴더명}
cd git clone {복사한 git clone 주소}
clone 폴더에 flutter project 생성
cd {프로젝트명; clone된 폴더명}
flutter create --org com.{회사도메인명} .
// --org를 설정하지 않으면 나중에 배포할때 프로젝트명을 수정해줘야한다.
// .은 현재 위치에 프로젝트를 생성한다는 의미이다. 만약 같은 위치에 {project name}을 입력하면 그 이름으로 내부에 폴더가 생성된다.
[Github Desktop] Add local repository
File > Add local repository > Choose > Local path 추가
생성된 프로젝트를 remote repository로 commit, push
728x90
'Flutter' 카테고리의 다른 글
[Flutter] Animation (0) | 2023.07.01 |
---|---|
[Flutter] Clean Architecture / MVVM (0) | 2023.06.30 |
[Flutter] 함수형 프로그래밍 (0) | 2023.06.29 |
[Flutter] debounce & Throttle (0) | 2023.06.29 |
[Flutter] ListView의 마지막 항목의 패딩 (0) | 2023.06.28 |