[[TableOfContents]]

== 일반 ==
==== 알아두면 좋은 기능 ====
===== stashing =====

==== 작업의 취소 ====
http://www.evernote.com/l/AMKuBFPL-uZItrAAGvEbqooTf52dvpkR1rQ/

==== push의 취소 ====
http://whiteship.me/?p=13516

==== commit 메시지 수정 ====
===== 마지막 커밋을 수정하기 =====
[[Code($ git commit --amend)]]
마지막 커밋을 수정하는 방법은 매우 간단하다. 이 명령으로 텍스트 편집기가 열리고 메시지를 수정하면 된다.

===== 커밋 메시지를 여러 개 수정하기 ====

rebase를 사용해야 한다. 다음을 주의 깊게 봐야 한다.

https://git-scm.com/book/ko/v1/Git-%EB%8F%84%EA%B5%AC-%ED%9E%88%EC%8A%A4%ED%86%A0%EB%A6%AC-%EB%8B%A8%EC%9E%A5%ED%95%98%EA%B8%B0

=== diff 패치 생성 및 적용 ===
{{{
git diff --no-prefix > patchfile # 패치 생성
cd path/to/top/                  # 이동
patch -p0 < patchfile            # 적용
}}}
--no-prefix 옵션 없이 생성된 patch 파일이 있다면,
{{{
patch -p1 < patchfile
}}}

== 기타 ==
=== gitignore ===
==== Visual Studio ====
https://github.com/github/gitignore/blob/master/VisualStudio.gitignore

----
CategoryDev