컴퓨터/git
-
[git] git 초기화, 삭제컴퓨터/git 2020. 9. 4. 16:03
source : youtube, 드림코딩 엘리 git 영상 * git을 초기화할 폴더 생성 및 해당 폴더로 이동(mkdir, cd) 1) git init (git 생성, git local repository 생성) => 이후 ls -al을 하면 .git(숨김폴더/파일, ls 명령어로는 보이지 않는다)이 생긴다 => open .git (git 폴더 내부가 열린다) => 기본 branch : master 2) git 삭제 rm -rf .git 3) 프로젝트 생성 후 git repository에 올리기 i) git init ii) github에서 new repository 생성 iii) .gitignore 파일 만들기 검색창에 gitignore nodejs 검색 .gitignore 파일 추가 # Logs lo..
-
[vscode] terminal을 git bash로 바꾸기컴퓨터/git 2020. 1. 7. 15:04
1) VScode에서 ctrl + , 누르면 설정에 들어간다. 2) 설정 검색칸에 'terminal.integrated.shell.windows' 입력 3) press 'settings.json에서 편집 ' 4) 추가 입력 { "terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe", } 5) ctrl + shift + `으로 새 터미널을 열어 확인 or VScode를 껐다 켠다. source : https://mishka.kr/2019/06/24/vscode-gitbash/