본문 바로가기

반응형

DEVELOPMENT/Git

(7)
DEVELOPMENT/Git [Git] Github에 잔디가 심어지지 않을때 1일 1커밋을 실천하는 사람들이 있다. 물론 나도 연초에는 그랬다.(연초에 보면 그래도 나름 열심히 했던 것의 이유...작심삼일이 너무 드러나네...) 이렇듯 깃에다가 푸시를하고 히스토리에 남는 과정을 '잔디를 심는다'라고 표현을 한다. 이런 잔디심기가 push를 제대로 하더라도 안되는 경우가 있는데, 푸시한 입장에서는 하나의 기록을 남기는 과정이 표현이 안되니 억울하고 허무하다. 이런경우 git을 설치 할때의 계정과 github 본인의 계정이 다를 때, 혹은 제대로 등록되어 있지 않은 경우가 대다수이므로 아래와 같이 해결하면 된다. 작업중인 폴더로 가서 아래 명령어를 사용해서 email이 등록되어 있는지 확인 git config\--list email이 등록 되어있든 안되어있든이메일 수정 git con..
DEVELOPMENT/Git [Git] What is detached HEAD state and how do I get out of it? https://stackoverflow.com/questions/7124486/what-to-do-with-commit-made-in-a-det ached-head What to do with commit made in a detached head Using git I made something like this git clone git checkout {a rev number tree rev before} (here I started to be in a detached head state) //hacking git commit //hacking git commit (some commit wh... stackoverflow.com https://howtogit.archive.pieterdedecker.b..
DEVELOPMENT/Git [Git] Git says remote ref does not exist when I delete remote branch The command git branch -a shows remote branches that exist in your local repository. This may sound a bit confusing but to understand it, you have to understand that there is a difference between a remote branch, and a branch that exists in a remote repository. Remote branches are local branches that map to branches of the remote repository. So the set of remote branches represent the state of t..
DEVELOPMENT/Git [Git] commit message 바꾸기 나는 #13 을 참조했었어야 하는데, #12라고 잘못적었다. 이미 commit을 해서 push 한 상태 만약 커밋을 새로 안해서, 가장 마지막 커밋이라면 git commit --amend 로 간단히 수정할 수 있다. 다만 예전 커밋메세지를 수정하려면 조금 복잡해진다. git rebase -i HEAD~3 이후 나오는 메세지 안내에 따라서 You can amend the commit now, with git commit --amend Once you are satisfied with your changes, run git rebase --continue 이후 위의 두 git 명령어를 써 준뒤, git push origin develop 를 써주면 오류가 난다. 따라서 강제로 푸시해주는 방법밖에 없다. gi..
DEVELOPMENT/Git [Git] commit message로 issue 정리하기 아래와 같은 키워드와 이슈 넘버는 자동적으로 이슈를 클로즈할 수 있다. 이 때, 키워드와 이슈넘버는 띄어쓰기를 해주어야 한다. fix #xxx fixes #xxx fixed #xxx close #xxx closes #xxx closed #xxx resolve #xxx resolves #xxx resolved #xxx https://github.blog/2011-04-09-issues-2-0-the-next-generation/ Issues 2.0: The Next Generation - The GitHub Blog Issue management: the final frontier. Almost two years ago to the day, GitHub launched an issue tracker. So..
DEVELOPMENT/Git [Git] Github 간편 사용 설명서 1. 새로운 repository 생성 Github 페이지에서 새로운 repository 생성 후에 로컬에서 작업한 내용을 올리기 위한 명령어 순서 명령어 입력 순서 1. git init 2. git add . 3. git commit -m “commit message” 4. git remote add origin repostory주소 5. git push -u origin master 1번으로 현재 작업중인 폴더에서 git을 사용할 수 있도록 해주고 2번으로 폴더 내의 모든 파일(.이 모든 파일을 의미)을 git의 staging area에 추가 3번으로 커밋과 동시에-m으로 커밋 메세지 작성 4번으로 원격 저장소, 즉 github repository 주소를 origin 이라는 이름으로 등록 5번으로 or..
DEVELOPMENT/Git [Git] We found potential security vulnerabilities in your dependencies. 오류 : 오류원인 : dependency 오류 해결방법 : dependency 해결

반응형