성장과정(dev)/Git (feat. github, bitbucket)
-
git 특정버전으로 소스 받기, git pull version성장과정(dev)/Git (feat. github, bitbucket) 2021. 2. 18. 09:28
* git log로 버전명 보기 $ git log --abbrev-commit --pretty=oneline 상황 : git을 사용하는 중에 특정 버전까지만 운영에 반영해야하는 상황이라서 특정 버전까지의 소스를 pull 받았다. 방법 $ git checkout {version} 여기서 version은 commit version이다 최신으로 돌아오기 $ git checkout HEAD 또는 $ git checkout dev (브런치명)
-
intellij git ignore 추가 및 반영성장과정(dev)/Git (feat. github, bitbucket) 2021. 2. 16. 14:11
1. 프로젝트 아래 .gitignore라는 파일에 추가할 ignore 파일을 입력 2. 입력한 ignore 파일 및 폴더를 업데이트 $ git rm -r --cached . $ git add . $ git commit -m "git ignore add" $ git push 참조 : m.blog.naver.com/PostView.nhn?blogId=simpolor&logNo=221065977618&proxyReferer=https:%2F%2Fwww.google.com%2F
-
git 자주쓰는 명령어, git cli성장과정(dev)/Git (feat. github, bitbucket) 2021. 2. 3. 17:46
* CLI란? Command Line Interface ( 텍스트 터미널을 통해 사용자와 컴퓨터가 상호작용하는 방식 ) * VCS란? Version Control System (intellij에서 VCS를 이용하여 git연결, 하지만 기능에 따라서 cli로 진행해야하는 경우가 있다. * git 명령어 $git remote remove origin > git 연결 끊기 $ git init > To initialize Git in a repository (repo), you just need to type the following command. If you don’t initialize Git, you cannot run any other Git commands within that repo. (git을 ..