깃이란?

깃다운로드 검색

윈도우면 윈도우 클릭

https://git-scm.com/downloads

 

Git - Downloads

Downloads macOS Windows Linux/Unix Older releases are available and the Git source repository is on GitHub. GUI Clients Git comes with built-in GUI tools (git-gui, gitk), but there are several third-party tools for users looking for a platform-specific exp

git-scm.com

 

버전에 맞춰 설치하면 되지만 일반적으로 이럴 것이다.

 

그 후 다른 옵션은 건들지 않고 Next만 누르면 설치가 된다

 

깃이 설치가 완료되면 깃허브를 들어가서 회원가입 or 로그인

 

https://github.com/

 

GitHub: Let’s build from here

GitHub is where over 100 million developers shape the future of software, together. Contribute to the open source community, manage your Git repositories, review code like a pro, track bugs and fea...

github.com

 

그후 레포지토리를 관리해주는 SourceTree를 설치할 것이다.

 

소스 트리 다운 로드

https://www.sourcetreeapp.com/

 

Sourcetree | Free Git GUI for Mac and Windows

A Git GUI that offers a visual representation of your repositories. Sourcetree is a free Git client for Windows and Mac.

www.sourcetreeapp.com

 

여기는 건너뛰

가끔 이렇게 깃이 설치된 경로를 못찾거나 하는 경우에 생기는 것 같은데

저기에 체크박스가 있으면 체크박스 선택 후 

고급옵션 => 기본적으로 줄 끝을 자동으로 처리하도록설정을 체크

 

 

이렇게 하면 기본적으로 Git, SourceTree 설치가 완료된다.

 

SourceTree를 사용하면 cmd창에서

git add. / git commit -m ""  같은 문구를 보기 편한 UI 버튼으로 만들어주기에

보기에 편하여 사용하는 Tool 이다. 

 

추 후

깃에 올릴때는
본인이 만든 Assets, Packages, ProjectSettings만 복사 한다 나머지 ignore + .vsconfig
깃 레포지 링크를 복사해서 sourcetree에 넣고

새폴더를 만들어 저장위치를 지정하고 클론
생성된 로컬 레포지에 들어가서 새폴더 생성
sourcetree에서 스테이지에 올리면 -> git add. 상태
그리고 메세지를 입력하여 커밋하면 로컬 레퍼지토리로 넘어간다. -> git commit -m " "
그 다음 단계는 푸시 => git push

'산대특 > 게임 알고리즘' 카테고리의 다른 글

ClimbCloud  (2) 2024.02.01
C# 대리자, 람다함수  (1) 2024.01.31
CatEscape 게임  (2) 2024.01.30
멤버 변수와 지역 변수  (0) 2024.01.29
유니티 실행 시 인터페이스  (0) 2024.01.25

+ Recent posts