GIT
-
Process 'command 'git'' finished with non-zero exit value 69Android 2024. 11. 21. 09:46
안드로이드 스튜디오에서 아래의 오류가 발생하면서 gradle sync 가 안 되는 문제가 있었는데Process 'command 'git'' finished with non-zero exit value 69 해결책은 간단하다 xcode EULA에서 동의를 받으면 끝이다.xcode의 git를 같이 쓰다 보니 Mac에서 안드로이드 스튜디오를 사용하는 사용자는 xcode의 영향도 같이 받는 것 같다.동의 후에는 정상적으로 작동한다. https://stackoverflow.com/questions/40263185/gradle-sync-failed-process-command-git-finished-with-non-zero-exit-value-69 Gradle sync failed: Process 'command ..
-
Github 프로필 꾸미기DevOps/Github 2022. 4. 25. 23:09
github에 자신의 아이디와 동일한 repository 를 생성시 프로필을 만들 수 있습니다. 만들어 두면 차후에 이력서로 사용하거나 이력을 설명하기에 매우 좋습니다. 위의 스크린샷 처럼 깃허브 캐릭터가 뜨면서 특별한 저장소라며 public으로 README를 초기화하고 시작하라고 안내가 뜹니다. 저는 이미 생성을 하여서 이미 존재하는 repository 라고 표기되고 있습니다. repository 가 생성된 후에는 README.md에 markdown으로 작성하려 프로필을 쓸 수 있습니다. 자신의 github에 접속하면 위와 같이 README 에작성한 내용이 바로 표기됩니다. https://github.com/DNights DNights - Overview I'm android developer. DNi..
-
Git 삭제된 branch, commit 복구하기DevOps/Git 2020. 9. 23. 10:04
git 를 사용하다가 실수로 branch 나 commit 을 삭제해버리는 경우가 있습니다. 잘못하면 많은 양의 작업이 통째로 날라가기도 합니다. 그래도 모든 git의 내역은 git에 저장되어 있습니다. 콘솔창에 아래의 명령어를 실행합니다. git reflog 입력하면 아래와 같이 화면이 출력됩니다. 그동안 작업했던 모든 내용이 표시됩니다. 아래로 이동하면 내역이 더 표시됩니다. 좌측 주황색 으로 표기된것은 commit id 입니다. 그리고 오른쪽으로 Head 가 이동된 index 그리고 내역이 표기 되어 있습니다. 위의 내용에서 branch 를 복구하고 싶다면 아래의 명령을 사용합니다. git checkout -b HEAD@{숫자} ex) git checkout -b master2 HEAD@{9} 이라고..
-
Android .gitignore 내용Android 2020. 1. 27. 16:21
안드로이드 프로젝트에서 git에 commit시 예외처리를 위해서 .gitignore 을 작성하게 되는데 기본적으로 작성시 아래와 같은 내용으로 작성됩니다. *.iml .gradle /local.properties /.idea/caches /.idea/libraries /.idea/modules.xml /.idea/workspace.xml /.idea/navEditor.xml /.idea/assetWizardSettings.xml .DS_Store /build /captures .externalNativeBuild .cxx 위와 같이 작성시 일부 불필요한 부분도 포함하게 되어서 내부 내용을 변경합니다. *.apk *.iml .gradle local.properties .idea .DS_Store build..
-
Git FlowDevOps/Git 2019. 11. 4. 12:57
일반적으로 사용하는 Git Flow 형식 입니다. master는 최종 배포 완료된 commit 집합이며 배포버전을 Tag로 표기합니다. 최종 테스트를 통과한 release branches만 merge 됩니다. hotfix는 최종 배포 완료후 발생한 긴급한 버그를 수정한 commit 집합 입니다. 수정완료후 master , develop에 각각 merge 됩니다. release branches는 개발이 완료된 commit 집합이며 개발은 완료되고 QA, 최종테스트를 앞두고 있는 상태입니다. QA에서 발생한 버그는 해당 branch에서 수정하여 commit 후에 배포시 master와 develop으로 merge됩니다. develop는 개발완료된 코드이며 feature에서 기능 개발이 완료된 코드를 merge..
-
gitignore not workingDevOps/Git 2019. 9. 17. 17:46
git rm -r --cached . git add . git commit -m "fixed untracked files" https://stackoverflow.com/questions/11451535/gitignore-is-ignored-by-git .gitignore is ignored by Git My .gitignore file seems to be being ignored by Git - could the .gitignore file be corrupt? Which file format, locale or culture does Git expect? My .gitignore: # This is a comment debug.log nbpr... stackoverflow.com
-
Git GUI Tools ListDevOps/Git 2019. 9. 16. 21:11
Git GUI Tools 목록입니다. 1. Git Extensions https://sourceforge.net/projects/gitextensions/ Git Extensions Download Git Extensions for free. A toolkit to make working with Git more intuitive. Git Extensions is a toolkit aimed at making working with Git on Windows more intuitive. Git Extensions is also available on Linux and Mac OS X using Mono. sourceforge.net 제가 맨처음 사용한 Git GUI 프로그램으로 Windows에서 만 지원..