Source Tree Author Failed

Windows tips 2020. 5. 27. 17:00

Mac

~/Library/Application Support/SourceTree
제거

Windows

%AppData%\..\Local\Atlassian\SourceTree

제거

설정

트랙백

댓글

Git Difftool MergeTool

Windows tips 2019. 1. 4. 10:25

git difftool 과 git mergetool 을 이용하면 사용자 정의 편집툴을 호출할 수 있다.

이때 Users/xxx/.gitconfig 파일에 정의된 내용과 git 에 미리 정의된 편집툴을 사용한다.

.gitconfig 에 해당 툴을 정의하려면

[difftool "diffmerge"]
	cmd = \"C:/Program Files/SourceGear/Common/DiffMerge/sgdm.exe\" \"$LOCAL\" \"$REMOTE\"
	path = C:/Program Files/SourceGear/Common/DiffMerge/sgdm.exe
[mergetool "diffmerge"]
	cmd = 'C:/Program Files/SourceGear/Common/DiffMerge/sgdm.exe' -merge -result=\"$MERGED\" \"$LOCAL\" \"$BASE\" \"$REMOTE\"
	trustExitCode = true

와 같이 정의할 수 있다.

사용법

git difftool --tool=diffmerge fcf1695608d8451befd12198baa484c6d16e5171 dcb472ee4f2a00cffac34c9a46f42026239536fb TEST/Foobar.txt

처럼 커밋 hash 를 직접 입력할 수 있어 편리하다.

또한 git 저장소 마다

.gitattribute 를 사용하여 확장자별 미리 정의된 편집툴을 이용할 수 있다.

*.txt diff=diffmerge merge=diffmerge

위와 같이 사용할 수 있다.


이미 정의된 difftool 이나 mergetool 목록을 보고 싶으면

git difftool --tool-help

git mergetool --tool-help

위와 같이 입력.

설정

트랙백

댓글

윈도우 서비스 제거 커맨드

Windows tips 2011. 6. 15. 17:06

sc delete "서비스명"
sc help 를 잘 이용하자.

설정

트랙백

댓글

윈도우 방화벽 포트 추가하기

Windows tips 2010. 7. 8. 19:07
1. 윈도우 XP 용 SSL 과 TLS 포트 허용 추가 커맨드
netsh firewall add portopening UDP 443 SSL
netsh firewall add portopening TCP 443 TLS

2. 윈도우 7 용 SSL 과 TLS 포트 허용 추가 커맨드
netsh advfirewall firewall add rule name="SSL OUT" protocol=UDP dir=out localport=443 action=allow
netsh advfirewall firewall add rule name="SSL IN" protocol=UDP dir=in localport=443 action=allow
netsh advfirewall firewall add rule name="TLS OUT" protocol=TCP dir=out localport=443 action=allow
netsh advfirewall firewall add rule name="TLS IN" protocol=TCP dir=in localport=443 action=allow

설정

트랙백

댓글

윈도우 자동 로그온

Windows tips 2008. 11. 15. 20:30
자동로그온을 설정하면 패스워드의 입력 없이도 로그온 할 수 있다.

  1. 시작 -> 실행 -> regedit 를 입력하여 레지스트리 편집기를 실행한다.
  2. HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\Winlogon
  3. DefaultUserName 사용자ID 입력
  4. DefaultPassword 비밀번호 입력. 항목이 없으면 문자열 값으로 새로만들기
  5. AutoAdminLogon 문자열 값을 새로 만든 후 값을 1로 설정

설정

트랙백

댓글