Local Git 설정

hanim·2022년 8월 11일
0

Git Study

목록 보기
1/2
  1. Git directory 로 사용할 폴더 생성
  2. 폴더내부로 이동
  3. git init
  1. git config 확인
  • git config -l
    - git config --global -l : 내 계정에대한 설정파일
    - git config --system -l

  • 계정 및 이메일 설정 및 변경
    git config --global user.name "name"
    git config --global user.email "email@eamil.com"

  • main Branch 명 설정 및 변경
    git config --system init.defaultbranch "main"

  1. Test
  • 파일생성
vim hellow.txt
  • 상태확인
git status
  • add
git add .

이후 git status => 초록색

  • git commit
git commit -m "코멘트"
  • 기록확인
git log

** 수정후에도 add, commit 해야함

profile
개발자가 되려는 개발자

0개의 댓글

관련 채용 정보