-
Git과 Visual Studio 연동Study/Node, React 기초 강의_John Ahn 2023. 2. 13. 01:57
git 설치에 대한 설명은 아래의 게시글에 적어 놓았다.
https://developer-study-blog.tistory.com/6
Git 설치 및 설정 (Window)
Git 설치 Git 홈페이지에 접속한다. https://git-scm.com/ Git git-scm.com 다운로드를 클릭한다. Window 운영체제를 선택한다. 사용자의 컴퓨터 환경에 맞는 Installer를 다운로드한다. 다운로드한 프로그램을
developer-study-blog.tistory.com
깃을 생성한다.
git init
Working Directory의 상태를 확인한다.
git status
< 결과 >
깃에 올릴 필요가 없는 모듈을 빼고 올리기 위해 .gitignore 파일을 생성한다.
< .gitignore >
node_modules
이후 다시 git status를 사용하면 node_modules/가 삭제된 것을 볼 수 있다.
Working Directory의 파일을 Staging Area로 이동시킨다.
git add
git에 commit 한다.
-m 옵션은 메시지를 포함시키는 옵션이다.
git commit -m "처음 저장소에 올림"
'Study > Node, React 기초 강의_John Ahn' 카테고리의 다른 글
BodyParser & PostMan & 회원 가입 기능 (0) 2023.02.13 SSH를 이용하여 GITHUB 연결 (0) 2023.02.13 Model, Schema 설정 (0) 2023.02.12 Mongo DB 연결 (0) 2023.02.11 개발 환경 설치_Node.js, express js, Visual Studio (Window) (0) 2023.02.11