Git
자주사용하는 Git 명령어
Tedi__
2019. 7. 3. 16:14
자주 사용하는 Git 명령어
1. git repository 생성
git init2. git 파일의 상태 확인
git status3. 원격지에서 소스코드 가져오기
git clone remote_path4. 브랜치 선택 및 추가
git checkout branc_name5. 원격 브랜치 목록 조회
git branch -r6. 로컬 브랜치 목록 조회
git branch -a7. 브랜치 이름 바꾸기
git branch -m branch_name chage_name8. 로컬 브랜치 삭제하기
git branch -d branc_name9. git remote url 변경하기
git remote set-url origin change_origin_url10. git push
git push origin master11. git pull
git pull12. git 계정 변경
git config --global user.name "user_name" // name 변경
git config --global user.email "user_email" // mail 변경