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

카테고리

분류 전체보기 (2731)
Unity3D (814)
Programming (474)
Server (33)
Unreal (4)
Gamebryo (56)
Tip & Tech (228)
협업 (57)
SVN (3)
Git (26)
Github (3)
Jenkins (9)
Trello (3)
Slack (4)
3DS Max (3)
Game (12)
Utility (136)
Etc (96)
Link (32)
Portfolio (19)
Subject (90)
iOS,OSX (51)
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
03-29 07:22

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

[링크] backlog.com/git-tutorial/kr/

 

누구나 쉽게 이해할 수 있는 Git 입문~버전 관리를 완벽하게 이용해보자~ | Backlog

누구나 쉽게 알 수 있는 Git에 입문하신 것을 환영합니다. Git을 사용해 버전 관리를 할 수 있도록 함께 공부해봅시다!

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

Tag 이름과 Branch 이름이 같으면 Push 할 때 Error가 난다.

 

[결론] Tag와 Branch 이름은 같게 만들지 말자..

 

 

[참조] jira.atlassian.com/browse/SRCTREE-1474

 

[SRCTREE-1474] Pushing Branch With the Same Name as a Tag Fails - Create and track feature requests for Atlassian products.

When a branch has the same name as a tag, it errors when pushing to origin. Steps to reproduce: Add a Git repository. Push to a remote. Create a branch (eg. stsp-420). Create a tag on master with the same name (eg. stsp-420). Push the created tag to the re

jira.atlassian.com

 

반응형
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 pull을 하는데 다음과 같은 메세지가 출력되며 소스를 다운받지 못하는 문제가 발생되었다.

remote: HTTP Basic: Access denied

fatal: Authentication failed for 'https://gitlab.com'/<project name>

 

 

해결법 : 계정정보 패스워드 설정을 초기화 하고 다시 입력해 준다.

$git config --system --unset credential.helper

reference - 

https://stackoverflow.com/questions/47860772/gitlab-remote-http-basic-access-denied-and-fatal-authentication

 

$git config --system --unset credential.helper 커맨드를 입력하면 계속 account와 password를 물어본다.

귀찮으니 해당폴더에서 $git config credential.helper store 를 입력하면 한번 인증 후 다시 물어보지 않는다.

자세한 내용은 더 검색해봐야함....

reference - https://www.hahwul.com/2018/08/git-credential-helper.html

 

 

[출처] https://wrjeoung.tistory.com/43

 

[Git] git pull remote: HTTP Basic: Access denied

갑자기 git pull을 하는데 다음과 같은 메세지가 출력되며 소스를 다운받지 못하는 문제가 발생되었다. remote: HTTP Basic: Access denied fatal: Authentication failed for 'https://gitlab.com'/

wrjeoung.tistory.com

 

반응형
Posted by blueasa
, |