소스 코드 관리 github
코드를 작성하고 이를 손쉽게 저장하여 관리할 수 있는 git 을 온라인 상으로 이용하는
github를 설정해보자.
먼저 github에 회원가입을 한다.
https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F&source=header-home
GitHub: Let’s build from here
GitHub is where over 94 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 feat...
github.com
위 주소로 들어가 회원가입을 진행한다.
회원가입을 진행하신 뒤 소스를 저장할 Repository를 생성합니다.
생성한 저장소에 코드를 업로드 하시면 됩니다.
이제 저장한 코드파일들을 직장이나 집에서 편하게 확인하고 업로드, 복사 할 수있도록 하는 프로그램인
github desktop 이 있습니다.
GitHub Desktop
Simple collaboration from your desktop
desktop.github.com
들어가셔서 설치를 하신 뒤 github 아이디로 로그인 하시면 다음과 같습니다.
왼쪽에 changes 부분에는 내 github 에 소스파일과 내 컴퓨터에서 작성한 코드들의 변경한 부분이 보여지게 됩니다.
맨 밑에 commit to main 을 눌르면 완료가 되게 되고 상단에 Fetch origin 항목이 push origin으로 바뀌게 됩니다.
push origin 을 누르게 되면 github 상에서도 변경이 되게 됩니다.