본문 바로가기
728x90
반응형

개발/개발환경, 개발도구 - git , vscode6

'\r': command not found (visual studio code 에서 해결 포함) windows 기반에서 vs code 내에서 shell 실행할 시에 자주나오는 에러 해결방안 1. visual studio code 사용시 CRLF --> LF 로 변경 2. cmd에서 \r 삭제 dos2unix 스크립트파일명.sh 3. wsl 혹은 bash에서 \r 삭제 sed -i 's/\r$//' 스크립트파일명.sh 2021. 4. 1.
visual studio code - snippet 설정하기 설정 File > Preferences > User Snippets New Snippet file for '프로젝트명' : 프로젝트내 snippet New Global snippet file : 모든 프로젝트에 적용 json 파일 예시 { "@ApiImplicit path": { "scope": "java", // 작동되는 프로그래밍 언어 "prefix": "@ApiImplicit path", // "body": [ "@ApiImplicitParams({@ApiImplicitParam(name = \"${1}\", value = \"${2}\", required = true, paramType = \"path\")})", "$2" ], "description": "change path de.. 2021. 3. 31.
gitlab page에 hugo 사용하기 파일 구조 archetypes content (md 파일 폴더) themes (적용할 테마 들어갈 폴더) .gitignore .gitlab-ci.yml .gitmodules Config.toml 1. gitlab-ci.yml image: monachus/hugo variables: GIT_SUBMODULE_STRATEGY: recursive pages: stage: deploy script: - hugo artifacts: paths: - public only: - master tags: - shared-runner 2. theme 적용하기 - .gitmodules [submodule "themes/reveal-hugo"] path = themes/reveal-hugo url = https://githu.. 2020. 4. 10.
gitlab error - A default branch (e.g. master) does not yet exist for <branch_name> 이런 오류가 나는 이유 1. owner, 또는 maintainer를 제외하고 새로운 repo를 생성하고 최초 push를 할 수 없다. (developer는 최초 push를 할 수 없다) 2. 해결책 1) owner 또는 maintainer 권한 취득 2) owner 또는 maintainer에게 해당 repo에 대한 생성 권한 요청하여 취득 3) gitlab web에서 최초 README.md를 생성한 후 진행 2020. 4. 6.
728x90