[개발툴] Github 명령어 정리

logg·2021년 1월 14일
0

[개발툴]

목록 보기
3/5

Github 명령어 정리


명령어의미
git initgit 초기 파일 생성 (해당 폴더에서 실행)
git add .(점)모든 파일들을 git에 추가
git commit -m "메세지내용""메세지내용" 메모를 남기고 commit 실행
git ignoreGit 버전 관리에서 제외할 파일 목록을 지정하는 파일
git remote -v현재 origin 되어 있는 repository 알려줌
git remote add origin + 아까 복사했던 repository 주소origin에 repository 주소 연동
git pull origin main --allow-unrelated-historiesVSCode에서 나타난 변화 업로드
git push -u origin mainVScode -> Github 업로드
git branchbranch 목록 확인
git branch 이름 ex) git branch samsam이라는 새로운 branch 생성
git checkout branch이름 ex) git checkout samsam으로 branch 변경
profile
logg

0개의 댓글

관련 채용 정보