Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- php
- 명사 분석기
- 나의 취미
- flex3
- 도커
- 책이야기
- ajax
- 주식이야기
- docker
- rss
- 명사 뽑아내기
- php thumbnail
- node.js web framework
- 베트남어
- 명사 추출기
- express for node.js
- scala
- ejb
- nodejs express
- Lift
- iBatis
- 스킨 스쿠버
- 나의 프로젝트
- 메일왕창보내는법
- ror실행
- Cross
- 디즈니씨
- C/C++
- Eclipse
- Node.js
Archives
- Today
- Total
nkdk의 세상
git 명령어 정리 본문
이번에는 git 명령어나 정리해 볼까 ㅎ
Git command
git config --global user.name "nkjason"
git config --global user.email jajapan@gmail.com
git init git생성
git remote add remote1
git remote add remote1 /home/yosnoop/work/git/tokubuy/.git
git fetch remote1
git pull --no-ff --log remote1 master
git pull --no-ff remote1 master
git diff
git reset --hard
git pull --no-ff remote1 master
git diff
git mergetool
git diff
git commit
tig
ls
tig
gitk
CONFLICT가 나게 되면 git mergetool 을 해서 합쳐 버린다.
git add -p 하나씩 인터렉티브하게 커밋을 적용
git ls-files -o 아직까지 add 되지 않은 파일을 찾는다
git commit 커밋을 실시한다.
git diff --cached
git reset <---soft, --hard 로 하면 아직 커밋 하지 않은 것도 전부 날라가 버린다.
git commit --amend -a <-- 기존에 커밋과 합쳐 버린다. -a 는 all 명령어 입니다.//
git stash <- 내가 작업한 내용에 대해 잠시 어디엔가 넣어 버린다.
git stash pop <- 잠시 어디엔가 넣은걸 꺼낸다.
git checkout -b test <- 현재 있는걸 바탕으로 새로운 브랜치 생성
git branch <- 현재의 가지 보기
git checkout branch이름 <- 브랜치 이름 적용
git reset #hash
git reset HEAD^^ --soft --hard
git remove <-삭제하기
git clone 클론 만들기
git checkout
git grep 찾기
git diff
git pull 당겨오기
git rm 삭제하기
git log
git show
뭐 이 정도 그 외 명령어도 있긴 한데..
다음에..