목록Study/git (1)
쥬로그
주로 사용하는 git 기본 명령어
git init : git 생성하기 git clone [해당 git 주소] : 해당 git 주소에 있는 코드 가져오기 git remote add origin [git 주소] : 해당 git과 연결하기 git branch -M main : 메인 branch 이름 master에서 main으로 변경 git branch [branch명] : 브랜치 생성하기 git branch -r : 원격 브랜치 목록보기 git branch -a : 로컬 브랜치 목록보기 git branch -m [기존 branch 명] [변경할 branch 명] : 브랜치 이름 바꾸기 git branch -d [branch명] : 브랜치 삭제하기 git checkout [branch명] : 브랜치 선택하기 git add [파일명 / 폴더명 /..
Study/git
2022. 5. 16. 11:05