ToolChain/VCS - git,github

Github 적응하기

TimeSave 2022. 11. 27. 21:40

1) github 정의 : GitHub는 버전 제어 및 협업을 위한 코드 호스팅 플랫폼

- 전 세계의 소스코드 프로젝트 게시판이라고 생각하면 된다.

- local에 git을 설치하여, github 연동한 뒤, 어느곳에서나 online으로 sync를 비교,동기화 하여 편리하게 사용할 수 있다.

역으로, 로컬 작업이 필요없으면 git설치 없이 github만 사용해도 무방하다.(과연?)

 

 

2) 핵심기능

  • repository 만들기 및 사용
  • 새 branch 시작 및 관리
  • 파일을 변경하고 GitHub에 commit으로 push
  • pull request(끌어오기 요청) 열기 및 merge

 

2-1)설명 : repositiory

- 단일 프로젝트 구성 목적

- 프로젝트에 필요한 모든 폴더/파일/이미지/비디오/스프레드시트/데이터 세트/README 등 수록

 

2-2)설명 : Pull Request, PR

- 서버에 업데이트되어 있는 내용을 받아와 주세요' :  내가 작업한 내용을 원본 저장소에서 받아가서 적용해 주세요

- pull request open : 요청 open

- changed/add/removed 항목은 coloring되어 표시.

- commit 한 후, 완료 전에  pull request를 open하고 review 한다.

- 요청 메시지에서 GitHub의 @mention 기능으로 특정한 사람에게 피드백을 요청할 수 있습니다.

.

 

 

2-5) branch,merge graph : Insights > Nework > Network Graph

 

3) Git

- VCS(Version Control System). 

- 로컬에서 사용하는 Version Control 시스템

- svn과 비슷하게, local에 설치해서 사용한다.

- github 연동을 위해 Github CLI 혹은, Github Desktop(Client)를 설치해서 사용한다.

- 이걸 설치해야, github에 commit할 수 있다.

 

3-1) Git설치

3-2) Git에서 GitHub으로 인증

- HTTPS

- SSH

3-3) git bash

- bash : bourne again shell, Bourne shell을 대체하기 위해 만들어진 Unix계열 운영체제용 POSIX 셸.

- git bash : 

 

4)

- 작업전

pull

clone

- 작업후

add

commit

push

- 실수

revert

rebase

reset

 

 

 

 

 

* github 공식문서

https://docs.github.com/ko

 

* github start 좋은 문서

https://backlog.com/git-tutorial/kr/intro/intro1_4.html

 

* git ignore, staging area

https://kotlinworld.com/269

https://iseunghan.tistory.com/322

 

* mark-down(readme.md), mark-up : language. 문서나 데이터의 구조를 명기하는 언어. 문서작성에 주로 사용

https://ko.wikipedia.org/wiki/%EB%A7%88%ED%81%AC%EB%8B%A4%EC%9A%B4

https://ko.wikipedia.org/wiki/%EB%A7%88%ED%81%AC%EC%97%85_%EC%96%B8%EC%96%B4

 

* bash 설명

https://parkjh7764.tistory.com/39

 

* LF, CRLF(line feed, Carrige return)

https://velog.io/@dev_yong/CRLF%EC%99%80-LF%EC%B0%A8%EC%9D%B4%EC%9D%98-%EC%9D%B4%ED%95%B4

 

* git https,ssh 연결

https://medium.com/@jamessoun93/ssh%EB%9E%80-%EB%AC%B4%EC%97%87%EC%9D%B8%EA%B0%80%EC%9A%94-87b58c521d6f

https://youbiiin.tistory.com/10

https://develoduck.tistory.com/10

https://algoroot.tistory.com/16

https://koreapy.tistory.com/770

 

* PullRequest 뜻

https://holika.tistory.com/entry/Git-%EC%82%BD%EC%A7%88%EA%B8%B0%EB%A1%9D-PR%EC%9D%84-%EC%98%AC%EB%A6%AC%EB%8B%A4-Pull-Request%EC%97%90-%EB%8C%80%ED%95%B4%EC%84%9C

 

 

* 여러 블로그의 git 사용법

https://wordbe.tistory.com/entry/Git-%EC%82%AC%EC%9A%A9-%EB%B0%A9%EB%B2%95-%EC%A0%95%EB%A6%ACcommit-push-pull-request-merge-%EB%93%B1

https://rogerdudler.github.io/git-guide/index.ko.html

https://velog.io/@augus-xury/github-%EC%82%AC%EC%9A%A9%EB%B2%95-%EA%B0%84%EB%8B%A8-%EC%A0%95%EB%A6%AC

https://nevertrustbrutus.tistory.com/153

https://tagilog.tistory.com/377

https://its-easy.tistory.com/27

'ToolChain > VCS - git,github' 카테고리의 다른 글

git - 2 Git의 기초(핵심)  (0) 2022.12.17
git - 1 시작하기  (0) 2022.12.11