Git(8)
-
하루동안 git 비밀번호 안물어보기
git config credential.helper 'cache --timeout=86400'
2025.08.24 -
Git fatal: detected dubious ownership in repository at '/etc'
에러git statusfatal: detected dubious ownership in repository at '/etc'To add an exception for this directory, call: git config --global --add safe.directory /etc원인: 해당 디렉토리에 대해서 권한이 없어서 발생함해결sudo git status
2025.01.30 -
SVN 백업 및 복구
전체 데이터를 백업받고, 개별 프로젝트별로 디렉토리 복사해서 local에서 SVN 복구 가능함
2024.12.29 -
Local과 Server 소스가 불일치 할때, git add -f
Local에는 파일이 있는데, 서버로 push를 하면, 일부 파일이 누락되는 경우가 있음원인은 정확히는 모르나, Local에서 파일명을 강제로 변경한 이후에 push를 하면 서버에서 해당 파일이 사라지는 것 같음그런 경우, command창에서 강제로 누락된 파일 또는 디렉토리를 add하여 push해야 # 누락된 파일이 push 대상에 보이지 않음git status# 특정 디렉토리를 push 대상에 등록git add -f ./src/main/resources/static# 등록한 파일 또는 디렉토리가 대상에 포함됨을 확인git status# commit 및 pushgit commit -m "누락된 부분 등록"git push
2024.08.12 -
현재 local 디렉토리를 git에 등록
git에서 먼저 프로젝트 생성https://marah.tistory.com/34 [Github] 현재 디렉토리를 새로운 Git 저장소로 만드는 방법github Create a New Repository 생성한 레포지토리 Code 복사 디렉토리 선택 git init 명령어 git remote 명령어 5-1. 등록되어 있는 상태 5-2. 새 저장소 등록 5-3. 연결 된 저장소 삭제 5-4. 안전한 경로 등록 git addmarah.tistory.comlocal repository 생성git initremote 주소 등록# 확인git remote -v# 등록# git에서 clone 정보를 복사해서 넣으면 됨git remote add origin {주소}# 확인git remote -v원하는 파일만 등록하도록 ..
2024.03.16 -
gitlab-runner 명령어
다중 라인 명령어 적용 https://jsramblings.com/using-multiline-strings-in-gitlab-yml-file/ Using multiline strings in GitLab YML file Sometimes your script is too long and it doesn't fit on one line: script: - docker run --name build-container --tag gitlab:demo --workdir /project --build-arg SOME_VAR=123 custom-image .It would be nice to be able to split this on multiple lines, just like jsramblings.com d..
2022.03.13