git
-
git bash로 git 명령어 실습해보기!!공부/etc 2021. 6. 13. 02:11
1. github에 새로운 repository를 생성한다. 2. repository에 올릴 소스코드를 저장한 폴더에서 git bash를 실행한다. 마우스 우클릭 후 Git Bash Here를 클릭하면 된다. 3. git init 명령어 실행 기존의 디렉토리를 Git 저장소로 만들 때 사용한다. .git이라는 하위 디렉토리를 생성한다. 4. git add [파일/디렉토리 경로] 명령어 실행 Git이 파일을 관리하게 하기 위한 명령어이다. add한 파일을 추적한다는 의미이다. 아까 생성한 commit_test.txt를 add 해보자! 참고) git add -h 명령어를 입력하면 git add 사용법을 볼 수 있다. 5. git commit -m [message] 명령어 실행 git commit -m "[me..