본문 바로가기
프로그래밍 관련/GitHub&Git&SourceTree

git 기본 명령어들

by 존버매니아.임베디드 개발자 2023. 10. 13.
반응형

//현재 상태 확인
git status

//원격저장소 상태 최신 업데이트
git remote update

// 브랜치 변경 (ex master로 변경)
git checkout master

// 새로운 브랜치 만들기
git checkout -b newbranchname

//풀 하기
git pull

//모든파일 discard
git checkout -- . 

//untracked 파일 모두 삭제
git clean -f . 

//원격저장소 브렌치목록보기
git branch -r

//로컬,원격 둘다 브렌치 목록보기
git branch -a

//원격 브렌치가져와서 로컬피씨에도 브런치만듬
git checkout -t   원격브랜치명


git stash list
git stash apply 스태시이름
git stash apply --index  스태시이름



반응형