[ git ] git 사용 설정 > git

본문 바로가기

사이트 내 전체검색

git

[ git ] git 사용 설정

작성일 21-03-02 03:27

페이지 정보

작성자 웹지기 조회 4,332회 댓글 0건

본문

git 유용한 툴 

Source Tree, GitKraken, cmder


git --version

git config --list => 설정확인

git config --global -e => 에디터에서 설정확인

code . => vscode 연결

git config --global core.editor "code"  => vscode로 설정열기

git config --global -e => 설정파일열기(vscode로 열림)

git config --global core.editor "code --wait" =>vscode가 열려있는동안 터미널 대기상태

git config --global -e => 설정파일열리(vscode로) 연결되면 터미널 대기상태


사용자 정보 저장

git config --global user.name "git에서 사용하는 아이디"

git config --global user.email "git에서 사용하는 이메일"

 

등록확인

git config user.name

git config user.email


운영체제에서 새로운 줄바꿈을 할 때 

윈도우는 text \r\n line feed

맥은 text \n line feed

git config --global core.autocrlf true => 윈도우 사용자

git config --global core.autocrlf input =>맥사용자


명령어 확인

git config --h


git Workflow

working directory --> staging area -->  .git directory

 

git 폴더지정

git init

 

git 원격지 등록하기

git remote add origin http원격지주소

 

git 파일 적용시키기( add . 에서 .은 해당폴더의 모든 파일 )

git add .

 

git 커밋하기( git commit -m(메스지) "메시지내용"

git commit -m "내용"

 

git 파일 원격지로 보내기(원격지의 마스터로 파일 업로드)

git push origin master


추천0

비추천 0

댓글목록

등록된 댓글이 없습니다.

전체 1건 1 페이지

이미지 목록

게시물 검색
Copyright © 즐거운 코딩 생활 ( funyphp ). All rights reserved.
PC 버전으로 보기