공부/etc
-
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..
-
github 유령계정을 살려보자,,공부/etc 2021. 5. 16. 14:53
예전에 github도 가입하고 git bash도 설치를 했었지만,, 왠지 어려워보이는 사용법과 귀차니즘때문에 부끄럽게도 지금껏 방치해뒀다..ㅎ 그래서 지금부터라도 조금씩 사용해보려고한다. 우선 예전에 풀었던 백준 알고리즘 소스코드 등을 깃허브에 올리고싶어서 새로운 repository를 생성했다. [새로운 repository 생성 방법] github.com/user_id 에서 Repositories 탭을 클릭 후 New를 클릭한다. (user_id에는 git 아이디를 입력하면 된다.) repository 이름과 기타 설정 사항을 저장한 뒤 Create repository를 클릭한다.