Git

· 기타/git
.gitignore 파일 형상관리시에 staging Area, Local, Remote Repository에 등록될 필요가 없는 파일을 자동으로 제외시켜주는 파일이다. ex. Log, Backup File, Compiled File gitignore 자동설정내역 생성페이지 를 들어가면 개발환경에 맞게 기본 설정된 gitignore 파일 내역을 출력해준다. add 취소 (File Staging Cancel) git reset "File name or Directory Name" default: File, Directory Name 생략시 add했던 모든 파일과 디렉토리. 최근 commit 취소 git reset [option] HEAD HEAD의 위치를 옮겨서 마지막 commit을 취소함. (HEAD는 현..
· 기타/git
Working Directory 사용자가 실제로 작업하는 폴더 Staging Area 확정할 변경 사항을 준비시키는 영역 Local Repsitory 사용자 컴퓨터 로컬 환경에 위치한 저장소. Remote Repository: Github, Gitlab 등에 위치한 원격 저장소. origin : local repository의 원본 원격 저장소 따라서 git push -u origin master 는 현재 Local Repsotiry 와 설정된 origin (remote repository) 를 연결시키며 푸쉬하겠다는 의미로. -u 옵션과 --set-upstream 옵션은 같은 역할을 한다고 보면된다. local - remote repository 연결이 성사되면 그 순간부터 -u 옵션을 생략하고 git..
· 기타/git
🔒문제 원인 'pull' 하지않고 Push하기 때문에!! Pull 하지않으면 Working Directory, Local Repository에 담기지도 않은 Commit 내용을 Push하라고 하는 것과 같음. 이러면 당연히 git 입장에서는 띠용임. ?? commit이랑 push 메시지는 있는데 원본 파일이 Working Directory, Local Repository에 없네? 문제상황 1 git push 명령어 입력시 Error: Failed to push some refs to 'git address' (Hint: git pull) before pushing again. 힌트에서 시킨대로 push 전에 먼저 pull을 해서 프로젝트를 병합해 주자. File Sync를 맞춰주기 위한. git pull..
M_Falcon
'Git' 태그의 글 목록 (3 Page)