이콜레모 개발자 위키

Page history of Git



Title: Git | edited by Youngrok Pak at 9 years, 5 months ago.

<h2>히스토리 고치기</h2>
<ul>
<li><a href="http://git-scm.com/book/ko/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">Git-도구-히스토리-단장하기</a></li>
<li><a href="https://help.github.com/articles/remove-sensitive-data">노출되면 안되는 정보가 커밋되었을 때 지우는 방법</a></li>
</ul>
<h2>커밋하지 않은 작업 내용 버리기</h2>
<p>stash 이용</p>
<pre>git stash save --keep-index</pre>
<p>reset 이용. 더 확실하나 버린 내용은 되살리지 못한다.</p>
<pre>git reset --hard HEAD</pre>
<h2>Git Bash Completion</h2>
<p><a href="https://raw.github.com/git/git/master/contrib/completion/git-completion.bash">https://raw.github.com/git/git/master/contrib/completion/git-completion.bash</a></p>
<p>위의 파일을 다운 받아서 <code>.profile</code>이나 <code>.bash_profile</code>, <code>.bashrc</code> 등에 다음과 같이 추가한다.</p>
<pre>. ~/.git-completion.bash</pre>
<p>그러고 나면 탭 키를 눌러서 git 명령어나 브랜치 이름 등을 자동완성을 할 수 있다.</p>
<h2>Git GUI</h2>
<ul>
<li><a href="http://www.sourcetreeapp.com/">SourceTree</a> 좀 못생겼지만 가장 강력하다. git의 대부분의 기능을 사용할 수 있다.</li>
<li><a href="http://gitx.laullon.com/">gitx</a> 여러 fork가 있지만 이게 가장 기능이 좋음. 심플하고 일상적인 작업은 모두 소화 가능하나, command line을 가끔 써야 한다.</li>
<li>IntelliJ의 IDE들. 일상적인 작업에는 가장 편리하나, git의 강력한 기능을 다 쓰지는 못한다.</li>
</ul>
<p> 
Wiki at WikiNamu