블로그 이미지
Every unexpected event is a path to learning for you.

카테고리

분류 전체보기 (2737)
Unity3D (817)
Programming (474)
Server (33)
Unreal (4)
Gamebryo (56)
Tip & Tech (228)
협업 (58)
3DS Max (3)
Game (12)
Utility (136)
Etc (96)
Link (32)
Portfolio (19)
Subject (90)
iOS,OSX (53)
Android (14)
Linux (5)
잉여 프로젝트 (2)
게임이야기 (3)
Memories (20)
Interest (38)
Thinking (38)
한글 (30)
PaperCraft (5)
Animation (408)
Wallpaper (2)
재테크 (18)
Exercise (3)
나만의 맛집 (3)
냥이 (10)
육아 (16)
Total
Today
Yesterday
04-20 00:00

[추가]

commit 시 crash 나는 이슈가 있어서 찾아보니

아래와 같은 내용이 있어서 .gitconfig 파일을 열어봤는데 name, email 부분이 없었다.

결과적으로 name에 한글로 입력을 해서 제대로 저장을 못하고 크래시가 나는 상황이었다.(한글 지원 안하는 듯)

SourceTree의 name은 영어로만 입력하자.

 

------------------------------------------

Hi, it seems that every time I commit atm SourceTree crashes, I did a search here and the only solution I could find was to delete a draft commit message but I don't have one ( see attached  )

It appears that my commits are working as can see my changes in Bitbucket but very annoying that it crashes

Cheers 

 

 

sourcetreeconfig ‏2 KB

Answer

 Watch

  Like 15 people like this

27 answers

 

 

9votes

Jörg Rösner Oct 17, 2019 • edited

Basically, I had the same issue. The error occours because no .gitconfig will create during the setup of 3.2.4. or you have missed to check the checkbox to create user information during setup wizard.

Open Sourcetree and check "File status" - you will see that there no user is available:

Fix the Issue

Close Sourcetree

To fix the issue open the explorer and navigate to: C:\Users\

Open the folder with your username

In this folder you should have a file with name ".gitconfig". If the file not exist, create it (It is no typo, the name will written with the dot at the beginning of the filename: .gitconfig

Open the existing / new file with an editor and add the following lines to the end of the file

[user]
name = User
email = Email

For "User" use a standard name (It is not the Windows Username meant)

For "Email" use a standard email Address

Save the file and start Source Tree again. You will see now, that a user is available in the "Status History".

BTW.: You can find your old user data in your last commits:

Go to "History" and select a commit. Here you can see in the commit information for the "Autor": Your old data. You should use the the same data as before to keep the structure:

 

Greets CR

 

 

[출처] https://community.atlassian.com/t5/Sourcetree-questions/Crash-on-commit/qaq-p/42492

 

Crash on commit

Hi, it seems that every time I commit atm SourceTree crashes, I did a search here and the only solution I could find was to delete a draft commit message but I don't have one ( see attached  ) It appears that my commits are working as can see my changes in

community.atlassian.com

 

반응형
Posted by blueasa
, |

svn 을 사용할 경우 내 변경이 다른 이의 작업에 영향을 줄까봐 commit 을 하지 않는 나쁜 습관을 갖게 되는 경우가 많다.

물론 branch 에서 작업하면 되지만 svn 은 브랜치와 머지가 쉽지 않으므로 대개 trunk 에서 작업하게 되며 이로 인해 커밋을 자주 하지않는 악순환에 빠지게 된다.

git 은 DVCS 이므로 push 를 하지 않으면 다른 이에게 영향을 주지 않으므로 커밋은 최대한 자주 해주는게 좋지만 로컬 커밋시 자세하게 커밋 메시지를 입력할 필요는 없다..

먼저 feature branch 에서 수시로 커밋하면서 작업을 완료한 후에 여러 개의 커밋을 묶어서 하나의 커밋으로 만들고 커밋 메시지를 다시 입력하고 이후에 push 하면 된다.

 

SourceTree 에서 사용

 

  1. develop(81d6a38) 에서 분기한 "squash_commit_test" 라는 feature 브랜치에서 4개의 커밋을 수행했다. 이 4 개의 커밋을 합쳐보자.
     
  2. 묶을 커밋의 부모 커밋(81d6a38)을 클릭한 후에 "Rebase children of interactively" 선택
  3. rebase 창에서 전체 커밋들의 목록이 표시됨
  4. 위에 있는 가장 최근의 커밋을 선택하고 하단의 "Squash with previous" 클릭하면 commit 3, 4가 하나로 합쳐진다.
     
  5. 4와 2를 합치기 위해 맨 위 커밋을 선택하고 다시 "Squash with previous" 클릭
  6. 2,3,4 가 하나로 합쳐졌다. 다시 맨 위를 선택하고 "Squash with previous" 클릭하여 1과 합친다.
     
  7. 4개의 커밋이 하나의 커밋으로 합쳐졌다.  커밋 메시지를 변경하려면 하단의 "Edit Message" 클릭
     
  8. squash commit 시 기본 커밋 메시지는 다음과 같이 합쳐진 커밋의 해쉬와 커밋 메시지가 표시된다. 알아보기 쉽게 정리된 커밋 메시지를 다시 입력한다.

    SourceTree의 버그인지 squash commit 메시지에 한글을 입력하면 한글이 깨지는 문제가 있다.


     

  9. 커밋 메시지 입력이 끝났으면 하단의 Ok 를 클릭하면 squash commit 이 완료된다. 
  10. 작업이 완료되면 다음과 같이 합쳐진 것을 확인할 수 있다.

 

Ref

 

[출처] https://www.lesstif.com/pages/viewpage.action?pageId=24445167

 

소스트리에서 git squash commit 을 이용하여 여러 개의 커밋을 합치고 정리하기

 

www.lesstif.com

 

반응형
Posted by blueasa
, |
반응형
Posted by blueasa
, |