[Git] 1. VCS(version control system)

JONGYOON JEON·2024년 2월 13일
0

Git

목록 보기
1/5

언제 쓰는가?

데이터가 날라가거나,
협업하거나,
이전 파일이 필요하거나,

but, 소스코드 보안이 중요한 경우 사용을 기피함.

Centralized Version Control Systems

협업이 가능해짐
commit 하는 순간 배포되어 다수에게 버그 유발 가능
인터넷 안되면 작업 불가
자신만의 version history 가질 수 없음

CVS(rollback 안됨, 1980년대) -> SVN (2000년대 만들어짐, 요즘도 씀)

Distributed Version Control Systems

Commit 을 하더라도 개인저장소 내에 적용됨
원하는 순간에 배포(Push) 가능
오프라인 가능
자신만의 version histry 가짐

Git(Global Information Tracker) - SVN보다 빠름, 가장 많이 쓰임

Git 설정 범위

System config
Global config
Local config

git config user.name(jjyinsight)
git config user.email(jjy.insight@gmail.com)

CRLF (줄바꿈 문자)

window \r \n
mac \n
공유시 충돌일어날 수 있어서 설정해야함

git config core.autocrlf=true

CRLF 를 LF로 바꿔줌

주요 기본 설정들

git config core.editor <editor_name>

git config init.defaultBranch <branch_name>

Github에서 master > main으로 바꿔서 충돌일어 날 수 있음

git config --l

git config --l --show-origin #어디 범위까지 적용되었는지 보여줌
git config ex. git config core.autocrlf

profile
효율적인 걸 좋아해요

0개의 댓글