성태의 닷넷 이야기
홈 주인
모아 놓은 자료
프로그래밍
질문/답변
사용자 관리
사용자
메뉴
아티클
외부 아티클
유용한 코드
온라인 기능
MathJax 입력기
최근 덧글
[정성태] Java - How to use the Foreign Funct...
[정성태] 제가 큰 실수를 했군요. ^^; Delegate를 통한 Bein...
[정성태] Working with Rust Libraries from C#...
[정성태] Detecting blocking calls using asyn...
[정성태] 아쉽게도, 커뮤니티는 아니고 개인 블로그입니다. ^^
[정성태] 질문이 잘 이해가 안 됩니다. 우선, 해당 소스코드에서 ILis...
[양승조
] var대신 dinamic으로 선언해서 해결은 했습니다. 맞는 해...
[양승조
] 또 막혔습니다. ㅠㅠ var list = props[i].Ge...
[양승조
] 아. 감사합니다. 어제는 안됐던것 같은데....정신을 차려야겠네...
[정성태] "props[i].GetValue(props[i])" 코드에서 ...
글쓰기
제목
이름
암호
전자우편
HTML
홈페이지
유형
제니퍼 .NET
닷넷
COM 개체 관련
스크립트
VC++
VS.NET IDE
Windows
Team Foundation Server
디버깅 기술
오류 유형
개발 환경 구성
웹
기타
Linux
Java
DDK
Math
Phone
Graphics
사물인터넷
부모글 보이기/감추기
내용
<div style='display: inline'> <h1 style='font-family: Malgun Gothic, Consolas; font-size: 20pt; color: #006699; text-align: center; font-weight: bold'>JetBrains IDE에서 "Squash Commits..." 메뉴가 비활성화된 경우</h1> <p> 일례로, PyCharm 같은 경우 이런 식으로 비활성이 되는데요,<br /> <br /> <img alt='squash_disabled_in_pycharm_1.png' src='/SysWebRes/bbs/squash_disabled_in_pycharm_1.png' /><br /> <br /> 왜냐하면 설정이 그렇게 되었기 때문입니다. 아래의 글에서 이에 대한 Q&A가 나오는데,<br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > Cannot squash the first commit – "Squash Commits..." is disabled ; <a target='tab' href='https://youtrack.jetbrains.com/issue/IDEA-262977'>https://youtrack.jetbrains.com/issue/IDEA-262977</a> </pre> <br /> 따라서 다시 활성화를 하려면 "File" / "Settings... (Ctrl+Alt+S)" 메뉴를 선택해 다음과 같이 "Version Control" / "Git" 범주로 들어가 "Protected branches"에 있는 텍스트를 적절하게 없애면 됩니다.<br /> <br /> <img onclick='toggle_img(this)' class='imgView' alt='squash_disabled_in_pycharm_2.png' src='/SysWebRes/bbs/squash_disabled_in_pycharm_2.png' /><br /> <br /> 보통 근래에는 (master가 노예제도를 연상시킨다 하여) main이 기본 branch가 되므로 그 문자열을 지워주면 다시 메뉴가 활성화됩니다. <br /> <br /> 참고로, 위의 경우에는 IDE 레벨에서 squash를 막는 반면 git 자체에서 막는 경우도 있습니다.<br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > About protected branches ; <a target='tab' href='https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/about-protected-branches'>https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/about-protected-branches</a> </pre> <br /> (유의할 점은, 개인 프로젝트가 아닌 한 팀 프로젝트에서 main/master의 Squash Commit은 권장할 기능이 아닙니다.)<br /> <br /> <hr style='width: 50%' /><br /> <br /> git을 다룰 때 개행 문자로 다음과 같은 경고가 발생한다면?<br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > warning: in the working copy of '...', LF will be replaced by CRLF the next time Git touches it </pre> <br /> 아래의 글에 따라,<br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > git 에서 CRLF 개행 문자 차이로 인한 문제 해결하기 ; <a target='tab' href='https://www.lesstif.com/gitbook/git-crlf-20776404.html'>https://www.lesstif.com/gitbook/git-crlf-20776404.html</a> </pre> <br /> eol 또는, autocrlf 값을 조정하면 됩니다. 유사한 문제들을 예전에도 한번 다뤘는데요,<br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > shell script 실행 시 "$'\r': command not found" 오류 ; <a target='tab' href='https://www.sysnet.pe.kr/2/0/12874'>https://www.sysnet.pe.kr/2/0/12874</a> Visual Studio 편집기의 \r\n (crlf) 개행을 \n으로 폴더 단위로 설정하는 방법 ; <a target='tab' href='https://www.sysnet.pe.kr/2/0/11376'>https://www.sysnet.pe.kr/2/0/11376</a> </pre> <br /> eol의 (native, crlf, lf) 값과, autocrlf의 (false, true, input) 값이 가능한 것은 이번에 새롭게 알게 되었습니다. ^^ 일례로, 언제나 리눅스에서만 실행되는 프로젝트를 개발하고 있다면 autocrlf를 "input"으로 설정하면 좋을 것입니다.<br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > git config --global core.autocrlf input </pre> </p><br /> <br /><hr /><span style='color: Maroon'>[이 글에 대해서 여러분들과 의견을 공유하고 싶습니다. 틀리거나 미흡한 부분 또는 의문 사항이 있으시면 언제든 댓글 남겨주십시오.]</span> </div>
첨부파일
스팸 방지용 인증 번호
1460
(왼쪽의 숫자를 입력해야 합니다.)