블로그 이미지
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-24 00:01

Windows 10

SourceTree 3.4.17

----

 

git에서 Pull을 받으려고 하니 'Filename too long' 에러가 뜨면서 Pull 받을 수가 없다.

검색해보니 longpath 허용을 해주면된다고 한다.

하는김에 전역으로 적용하기 위해 --global 추가 적용함

----

 

1) 소스트리 터미널 열기(SourceTree > Actions > Open in Terminal)

 

2) 아래 명령어 실행

git config --global core.longpaths true

 

 

 

[참조] https://daewonyoon.tistory.com/456

 

[GIT] error unable to create file ... Filename too long

git clone 을 하려고 하는데, 파일명이 너무 길어서 실패했다. error: unable to create file 2022/07_swift_test_projects/how-to-make-async-command-line-tools-and-scripts-1/ how-to-make-async-command-line-tools-and-scripts-1/SwiftConcurrencyB

daewonyoon.tistory.com

[참조] https://neive.tistory.com/748

 

소스트리(SourceTree) Filename too long 에러 뜰 때

git config core.longpaths true 소스트리에서 동작>터미널 열기 로 콘솔창 열어서 위의 커멘드를 입력

neive.tistory.com

 

반응형
Posted by blueasa
, |

Windows SourceTree에서 Merge 하는 중에 Conflict가 발생하고나서,

Resolve using Theirs 혹은 Resolve using Mine을 선택해도 제목과 같은 에러를 내면서 해결이 되지 않는다.

 

인터넷 검색해보니 Conflict 난 리스트 중에 삭제된 파일이 있어서 제대로 해결이 되지 않는 것 같다.

 

아래 [참조] 링크의 해결방법은 간단히 보면 아래와 같다.

 

[해결방법]

1) Conflict 난 리스트 전체 선택 후, '삭제(Remove)'.

2) 1)에서 '삭제(Remove)'해도 리스트는 여전히 Conflict 난 상태로 보인다.(우측 diff에서는 충돌난 정보가 사라짐)

3) 2)의 상태에서 그대로 'Mark as resolved'를 해서 Conflict 정보를 Commit/Push 하고 종료 시킨다.

 

[추가]

내 경우는 3)을 하고 해결이 된 것 같아 보이지만 소실된 파일들이 있었다.

새로 Merge를 해도 Resolved를 시켜버려서 그런지 갱신된 정보가 없어서 Merge 할 게 없는걸로 보인다.

별 수 없이 별도로 파일을 추가해서 다시 Commit/Push 시켰다.

 

[참조] https://stackoverflow.com/questions/53227144/cannot-resolve-conflictsapplication-is-locking-files

 

Cannot resolve conflicts(application is locking files)

I am trying to pull from another branch into mine, and I get merge errors. When I try to resolve them, I get this error from SourceTree: "Could not update one or more files, please check that no ot...

stackoverflow.com

 

반응형
Posted by blueasa
, |

[링크] https://mentum.tistory.com/421

 

소스트리 git 대소문자 변경 인식시키기

오른쪽 위의 터미널을 열어서 git config core.ignorecase false 를 입력. 이후 새로고침을 해보면 대소문자가 변경되도 인식된다. 해당 세팅은 컴퓨터 마다 따로 설정해야 함.

mentum.tistory.com

 

반응형
Posted by blueasa
, |

[링크] https://dev-syhy.tistory.com/44

 

[Git] git revert 에러 (merge but no -m option was given)

회사 팀에서 git을 사용하고 있는데 내가 커밋한 내역까지는 아무 이상 없던 코드가 팀원이 푸시한 코드를 풀로 받고나니 아뿔싸... 지금까지 만들었던 코드들이 다 날아가버렸다 얼마전에 블로

dev-syhy.tistory.com

 

[링크] http://www.codingswede.se/2017/05/revert-merge-commit-using-sourcetree.html

 

Revert a merge commit using SourceTree

Update 1 (no need to investigate the parents) The use case I need this for is when a feature branch has been merged to master, and after ...

www.codingswede.se

 

반응형
Posted by blueasa
, |

[링크] https://okayoon.tistory.com/entry/git-Stash-%EC%86%8C%EC%8A%A4%ED%8A%B8%EB%A6%AC%EC%97%90%EC%84%9C-%EC%82%AC%EC%9A%A9%ED%95%B4%EB%B3%B4%EA%B8%B0

 

git Stash 깃 스태시, 소스트리에서 사용해보기

pull 받기 전 충돌날 것 같으면 사용합니다. 1.커밋하지 않은채로 스태시 버튼 클릭 2.스태시 이름을 정해주고 확인클릭 3.스태시 하위에 내가 저장한 목록확인, 커밋해야하는 파일들 사라진것을

okayoon.tistory.com

 

반응형
Posted by blueasa
, |

 

 

SourceTree에서 History 항목의 한글 깨짐 현상을 수정하는 방법에 대해 알아봅니다.

 

 

 

1. SourceTree 한글 설정.

 

SourceTree의 일반 메뉴에 대해 한글 설정은 옵션에서 할 수 있습니다.

 

도구 -> 옵션으로 이동 후 Repo Settings 그룹 박스 내에 있는 언어와 기본 텍스트 인코딩을 변경해주면 됩니다.

 

 

위와 같이 설정 후 SourceTree를 재시작해 주시면 됩니다.

 

 

 

2. History의 커밋 메시지 한글화.

 

위와 같이 설정해도 History내부의 한글은 여전히 깨져있는 상태입니다.

 

 

이 현상은 각 워크 스페이스마다의 설정을 변경해 주어야 합니다.

 

워크스페이스 우측 상단에 보이는 설정을 클릭합니다.

 

 

이후 저장소 설정 화면이 나타날텐데 "설정 파일 편집..."을 선택한 뒤 텍스트 편집기로 config파일을 엽니다.

 

기본 config 파일은 아마 다음과 같을겁니다.

 

[core]
	repositoryformatversion = 0
	filemode = false
	bare = false
	logallrefupdates = true
	ignorecase = true
[remote "origin"]
	url = https://github.com/....git
	fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
	remote = origin
	merge = refs/heads/master

 

이 설정을 다음과 같이 수정해 줍시다.

 

[i18n]
    logOutputEncoding = euc-kr
    commitEncoding = UTF-8
[core]
	repositoryformatversion = 0
	filemode = false
	bare = false
	logallrefupdates = true
	ignorecase = true
[remote "origin"]
	url = https://github.com/....git
	fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
	remote = origin
	merge = refs/heads/master

 

이후 config파일을 저장 한 뒤 저장소 설정의 확인 버튼을 클릭합니다.

 

 

정상적으로 한글이 노출되는 것을 확인할 수 있습니다.

 



출처: https://smoh.tistory.com/346 [Simple is Beautiful.]

 

[Sourcetree] History 한글 깨짐 현상 수정

SourceTree에서 History 항목의 한글 깨짐 현상을 수정하는 방법에 대해 알아봅니다. 1. SourceTree 한글 설정. SourceTree의 일반 메뉴에 대해 한글 설정은 옵션에서 할 수 있습니다. 도구 -> 옵션으로 이동

smoh.tistory.com

 

 
반응형
Posted by blueasa
, |

[증상]

다른 브랜치에서 작업을 끝내고 'Merge XXX into current branch'를 했는데,

Conflict가 나서 Resolve using 'Theirs'를 하니 제목과 같은 에러가 남.

그래서 Resolve using 'Mine'을 해봤는데 그래도 똑같은 에러가 나면서 처리가 안됨.

 

검색을 좀 해보니 충돌(Conflict)난 파일이 삭제된 파일이라 Resolve로는 해결이 안되는 것 같다.

그래서 설명해준대로 아래와 같은 방법으로 진행함. 

 

[해결방법]

1. 위 에러가 뜨는 파일 선택(여러개면 같이 선택)

2. 마우스 우클릭 - Remove

3. Remove 해도 파일이 사라지지 않고 그대로 선택된 상태(그대로 유지)

3. 마우스 우클릭 - Mark Resolved

 

 

[출처] stackoverflow.com/questions/53227144/cannot-resolve-conflictsapplication-is-locking-files

If you've already checked your .git/index.lock file, then you are likely seeing a SourceTree bug. See jira.atlassian.com/browse/SRCTREEWIN-2366

The bug occurs when either the "Mine" change or the "Theirs" change is a file deletion. Trying to "Resolve using 'Mine'" or "Resolve using 'Theirs'" (respectively), which should result in a file deletion, will give you this error instead.

One workaround (on Windows) is to select the all the conflicted files you want to resolve this way, right click, and select "Remove". The files will (strangely) not change status or disappear, but should remain selected. Right click again, and select "Mark as resolved". This will delete them correctly and resolve the conflict.

반응형
Posted by blueasa
, |

윈도우10을 깔고 Sourcetree 3.3.6(현재 최신)을 깔았는데 Commit을 하거나 Fetch를 해도 UI가 갱신이 안돼서 F5를 눌러서 수동 갱신을 시켜주고 있다가 짜증나서 검색해보니 3.3.6 버그인 것 같다.

어쨌든 해결방법이 있길래 따라해보니 잘된다.

 

[Sourcetree 3.3.6 갱신 안되는 버그 해결방법]

 https://confluence.atlassian.com/sourcetreekb/bookmarks-column-repository-browser-overview-781398414.html

 


 

[Question]

Sourcetree 3.3.6 with windows 10 not updating UI contents or not refreshing views. If you want to see updated view then you need to restart app. any solution for this?

 

[Answer]

seems to be related to bookmarks. deleting it solves it, at least for me. found it here: https://community.atlassian.com/t5/Sourcetree-questions/Manual-refresh-required/qaq-p/1256362

how to delete bookmarks can be found here: https://confluence.atlassian.com/sourcetreekb/bookmarks-column-repository-browser-overview-781398414.html

 

 

 

[출처] https://stackoverflow.com/questions/59819783/sourcetree-3-3-6-refresh-issue

 

Sourcetree 3.3.6 Refresh issue

Sourcetree 3.3.6 with windows 10 not updating UI contents or not refreshing views. If you want to see updated view then you need to restart app. any solution for this?

stackoverflow.com

 

반응형
Posted by blueasa
, |

유니티의 소스 파일들을 Git을 통해 버전관리 하고 있는데,
이상하게 몇 개 어셋들이 제대로 싱크가 되지 않는 문제가 있었습니다.

이 어셋들이 뱉어내는 에러는 공통적으로 .dll 파일이 없어져서 문제였는데,
이것 때문에 Git을 안 쓸 수는 없는 문제라서 한동안은 각 작업자마다 해당 어셋을 다시 import하거나 dll 파일을 복사해 주는 식으로 해결했습니다.

그러다가 오랜만에 소스를  다시 받을 일이 생겨서 clone을 했더니 같은 문제가 생겼는데 그 사이 사용하는 어셋들이 늘어나다보니 수작업은 너무 귀찮았습니다.
(벌써 오래전에 해결했어야 했는데 말이죠)

구글링을 해 보고는 이 문제는 Git 클라이언트로 SourceTree를 사용하기 때문이라는 점을 알아냈습니다.

http://stackoverflow.com/questions/15515729/git-repository-ignoring-all-dlls

핵심은 SourceTree에는 Global .gitignore를 기본으로 제공하는데 이 파일에 *.dll 이 포함되어 있는거죠. (왜죠??)

이 파일은 아래의 경로에서 찾을 수 있고요.

Tools=>Options=>Git then “Edit File”

  1. .dll 을 찾아서 라인 앞에 #을 붙여서 주석처리 해 줍니다.
  2. 해당 프로젝트 선택하고
  3. GitBash(터미널)을 연 후,
  4. git add .
  5. git commit -m ‘dll 파일 추가’
  6. git push

이렇게 진행해 주시면 해결됩니다.

SourceTree 문제일 거라는 생각은 못해 봤네요.

 

[출처] https://heartgamer.wordpress.com/2015/12/07/unity-git%EC%9D%84-%EC%97%B0%EB%8F%99%ED%96%88%EC%9D%84-%EB%95%8C-dll-%ED%8C%8C%EC%9D%BC%EC%9D%B4-tracking%EB%90%98%EC%A7%80-%EC%95%8A%EB%8A%94-%EB%AC%B8%EC%A0%9C-%ED%95%B4%EA%B2%B0/

 

Unity, Git을 연동했을 때 dll 파일이 tracking되지 않는 문제 해결.

유니티의 소스 파일들을 Git을 통해 버전관리 하고 있는데, 이상하게 몇 개 어셋들이 제대로 싱크가 되지 않는 문제가 있었습니다. 이 어셋들이 뱉어내는 에러는 공통적으로 .dll 파일이 없어져서 문제였는데, 이것 때문에 Git을 안 쓸 수는 없는 문제라서 한동안은 각 작업자마다 해당 어셋을 다시 import하거나 dll 파일을 복사해 주는 식으로 해결…

heartgamer.wordpress.com

 

반응형
Posted by blueasa
, |

[추가]

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
, |