사용자 도구

사이트 도구


git

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판 이전 판
다음 판
이전 판
다음 판 양쪽 다음 판
git [2020/10/10 17:24]
kwon37xi [diff & difftool]
git [2021/02/17 23:33]
kwon37xi [Git Diff -> vimdiff]
줄 66: 줄 66:
 ===== Git Diff/Merge -> kdiff3 ===== ===== Git Diff/Merge -> kdiff3 =====
   * [[https://docs.kde.org/trunk5/en/extragear-utils/kdiff3/git.html|Using KDiff3 as a Git Diff and Merging Tool]]   * [[https://docs.kde.org/trunk5/en/extragear-utils/kdiff3/git.html|Using KDiff3 as a Git Diff and Merging Tool]]
-  * 잘 작동 안함.+  * 파일 삭제 diff시에 잘 작동 안함
 +    * https://github.com/KDE/kdiff3/blob/master/ChangeLog :  Version 1.8.3 부터 해결됨.
 <code> <code>
 [diff] [diff]
줄 116: 줄 117:
  
 ===== Git Diff -> vimdiff ===== ===== Git Diff -> vimdiff =====
 +  * [[vim:vimdiff|vimdiff]]
   * [[http://technotales.wordpress.com/2009/05/17/git-diff-with-vimdiff/|Git Diff with Vimdiff]]   * [[http://technotales.wordpress.com/2009/05/17/git-diff-with-vimdiff/|Git Diff with Vimdiff]]
   * ''~/.gitconfig''<code>   * ''~/.gitconfig''<code>
줄 129: 줄 131:
   * 설정의 external 무시하고 vim을 pager로<code sh>   * 설정의 external 무시하고 vim을 pager로<code sh>
 git diff --no-ext-diff -w | vim -R - git diff --no-ext-diff -w | vim -R -
 +</code>
 +  * 그냥 명령을 직접 주기<code sh>
 +git diff -y -t vimdiff
 +# -y 는 no prompt
 </code> </code>
 ===== .gitignore ===== ===== .gitignore =====
줄 275: 줄 281:
   * ''git ls-files %%--%%stage''로 다시 확인해보면 **100755**로 변경됨.   * ''git ls-files %%--%%stage''로 다시 확인해보면 **100755**로 변경됨.
   * commit 한다.   * commit 한다.
 +
 +===== shallow update not allowed =====
 +  * ''clone --depth=x'' 로 클론한 로컬 리포지토리에서 수정해서 push 하면 ''! [remote rejected] master -> master (shallow update not allowed)'' 오류가 발생한다.
 +  * [[https://stackoverflow.com/questions/28983842/remote-rejected-shallow-update-not-allowed-after-changing-git-remote-url|! [remote rejected] master -> master (shallow update not allowed)]]
 +
 +<code sh>
 +git fetch --unshallow origin
 +
 +# 이후에
 +git push
 +</code>
  
  
git.txt · 마지막으로 수정됨: 2023/10/14 13:47 저자 kwon37xi