-
Git 명령어(remote)
remote add origin 주소 origin이라는 이름으로 해당주소의 원격저장소를 로컬저장소에 등록 $ git remote add origin https://github.com/europani.git remote remove origin 로컬저장소와 원격저장소 연결해제 $ git remote remove origin remote -v 등록된 원격저장소 확인 remote prune origin local에서 더 이상 유효하지 않은 remote branch 제거하여 동기화 $ git remote prune origin push remo...
-
Git 명령어(Local)
init 현재 디렉토리를 Git Repository로 설정 (.git 폴더 생성) $ git init add 선택한 폴더,파일을 Working Tree에서 Staging Area에 추가 $ git add hello.txt . : 현재 디렉토리의 모든파일을 추가 $ git add . commit 버전을 만듦. Staging Area의 모든 파일을 Git Repository로 올림 -m : 바로 메시지작성 가능.(message) $ git commit -m "version...
-
git의 영역
●Working Tree 실제로 작업을 하는 공간(워킹 디렉토리라고 생각). 버전으로 만들어지기 전의 공간 init 명령어를 통해 Git Repository로 설정(.git 폴더 생성)Git Repository로 설정(.git 폴더 생성) ●Staging Area commit을 할 git에 올릴 파일을 담아두는 공간 add 명령어를 통해 Working tree->Staging Area ●Git Repository(directory) commit된 파일이 있는 공간 init명령어로 설정한 git repository 폴더내의 .git 폴더임(숨김파일) commit 명령어를 통해 Staging ...
-
CLI 명령어
Directory pwd : print working directory cd : change directory ☞ / : 최상위 directory (루트 directory) ex) cd / ☞ ~ : 홈 directory (/C:/Users/계정명) ☞ .. : 이전 directory ☞ . : 현재 directory mkdir : make directory rmdir : remove directory ls : 해당 directory에 있는 파일 list ☞ -a : 모든 파...
-
target
function anonymous(event){ const a = event.target const b = event.target.parentNode } a는 event의 대상 b는 event의 대상의 부모 Element