티스토리 뷰
Git Client 설치 파일
1. GitHub Desktop : https://desktop.github.com/
2. Git : https://git-scm.com/download/win
기본적인 작업 루트
git 로컬 저장소 생성 & 사용자 정보 설정 & git에서 추적 하지 않을 파일들 설정
> git config --global user.name "사용자 이름" (저장된 이름 확인은 git config --global user.name) > git config --global user.email "메일주소" (저장된 주소 확인은 git config --global user.email) > 저장소로 사용할 폴더 이동 후 > git init
> .gitignore 파일 추가 후 추적하지 않을 파일목록 작성
> 작성 방법 : https://git-scm.com/docs/gitignore
원격 저장소 추가 (GitHub 같은 원격 저장소가 있을 경우)
> git remote add 저장소명 저장소 주소 > git remote add origin git@github.com:ParkMinKyu/intranet.git
추가된 원격 저장소 확인 방법
> git remote (추가된 저장소명 확인) > git remote -v (추가된 저장소명 url 상태 확인)
git 저장소에 프로젝트 추가 & 작업 후 스테이징 영역에 추가
> 해당 폴더에 작업 및 파일 추가 후
> git status ( git에서 추적중인 변경된 파일들 확인 ) > git add 파일명 ( 변경 or 추가된 파일을 스테이징 영역에 올리는 작업 ) > git add . ( 변경된 모든 파일을 한번에 추가하고 싶으면 )
커밋
> git commit -m "커밋 메세지"
커밋시 에디터 설정하기
> git config --global core.editor "\"c:\Windows\notepad.exe\" " (윈도우 메모장을 사용 할 경우)
작업이 완료 된 후 원격 저장소에 push
> git push origin master
댓글
최근에 올라온 글
최근에 달린 댓글
글 보관함
- Total
- Today
- Yesterday
TAG
- getaddrinfo ENOTFOUND localhost
- Security
- 자료형
- 인테리어 시뮬레이터
- yyyy-MM-dd
- 스프링시큐리티
- 2장요약
- Spring
- indexeddb
- cronexpression
- sprign security
- git log
- git reflog
- fullcalendar
- array
- remember-me
- xcrun
- 몽고디비
- 중복 실행
- mongoDB
- GitHub
- intranet 설치방법
- java
- 중복 호출
- jquery
- javascript
- replaceWith
- springsecurity
- Git
- errordocument