git

LEE YUJIN·2023년 3월 24일
0

git

목록 보기
3/7
설치완료
$ git --version
git version 2.39.2.windows.1
git global 설정
$ git config --global --user.name 사용자이름
$ git config --global --user.email 사용자 이메일
설정 확인
$ git config --global --list
줄바꿈 문자열 설정
$ git config --global core.autocrlf true #Window
처음 생성할 때
echo "# git" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin [url]
git push -u origin main
repository 존재할 경우
git remote add origin [url]
git branch -M main
git push -u origin main
git remote -v
브랜치 목록 및 현재 브랜치 확인
git branch

bash: syntax error near unexpected token `('

( 시작 과 끝에 " "로 감싸줌

한글 깨짐(git bash 화면에서 보여지는 것만 해당..?)

$ git config --global core.quotepath false
profile
개발 공부노트

0개의 댓글