공부/Git

    [깃블로그] The page build failed for the `master` branch with the following error: Page build failed. For more information

    [깃블로그] The page build failed for the `master` branch with the following error: Page build failed. For more information

    뭐지....? github.io를 만드는 중에 블로그 내용이 바뀌지 않고 빌드 안됬다는 메일이 계속왔다 내용인 즉슨 뭐가 잘몼됬다는건데 내가 해결한 방볍은 gemfile.lock 파일을 지우고 bundle 을 다시 실행시켜주었더니 더이상의 메일은 오지 않았다!

    깃블로그 깃허브 블로그 파일 위치

    _posts : 게시물 assets : css, img, js 이미지는 assets 폴더 이용 메뉴 _data/navigation.yml

    fatal : unable to access "" could not resolve host: "" 해결

    git pull하는데 생긴 error 로 proxy에 문제가 있어서 아래 명령어로 해결할 수 있었다. git config --global --unset http.proxy git config --global --unset https.proxy 저장소를 복제하는 명령어 사용으로 다시 해본다. git clone 깃주소.git

    [git 블로그] 깃허브 블로그 만들기 (github.io)

    [git 블로그] 깃허브 블로그 만들기 (github.io)

    jekyllthemes.org/ Jekyll Themes jekyllthemes.org 다음 사이트에서 블로그 테마 선택할 수 있다 다음과 같이 초록색 화면이 나오면 성공한것이다. 다음과 같이 git bash창에서 깃 연동하기 git clone 파일 위치 이동 cd directory 필요한 플러그인 설치 bundle install 서버시작 bundle exec Jekyll serve //127.0.0.1:4000 에서 확인가능함

    git 초기설정 및 연결하기

    git 초기 설정으로 깃에 올리는 이름과 이메일을 설정해주어야한다. global명령어를 사용하지않으면 깃 push할때마다 이름과 이메일을 설정해주어야 한다. // git commit에 사용될 username git config --global user.name "your_name" // git commit에 사용될 email git config --global user.email "your_email@example.com" // 설정한 내용을 확인할 수 있다. git config --list git init 으로 깃과 연결해준다 git init git remote add origin 깃주소 // git push --set git push --set-upstream origin master git pull..

    [Git]  [rejected] master -> master (non-fast-forward) 해결 방법(강제push)

    [Git] [rejected] master -> master (non-fast-forward) 해결 방법(강제push)

    git 을 다른 아이디로 다시 연결하고 git push 작업을 진행하려고 했다. git push --set-upstream origin master 위의 명령어로 실행해도 rejected 라면 push가 되지 않았다 git push --set-upstream origin +master + 를 붙이면 강제 push 라서 git pull 명령어를 실행 후 git push 를 실행할 것을 추천드린다.

    WARNING! Using --password via the CLI is insecure. Use --password-stdin

    gitlab-ci.yml 비밀번호 오류가 나면서 안됨 --password-stdin로 변경해서 사용하면 다음과 같은 에러가 뜨면서 안됨 Error: Cannot perform an interactive login from a non TTY device 해결 docker login 부분에서 $CI_REGISTRY 의 경로가 지정되어 있지 않아 생기는 오류였다.

    .git 삭제 명령어 / git 연결끊기

    git이랑 연결된 프로젝트의 연결을 취소하고 싶을 때 .git 파일을 삭제해주어야 한다. 프로젝트가 삭제되는것이 아니고 깃과 연결되어있는 .git을 삭제하는 것이다. 삭제하는 명령어는 find ./ -name ".git" | xargs rm -Rf

    fatal : not a git repository (or any of the parent directories): .git

    fatal : not a git repository (or any of the parent directories): .git

    초기화 작업이 진행되지 않아 발생하는 오류로 git init 명령어로 초기화 및 기본 설정 .git 디렉토리를 생성해야 한다. # git init # ls -la 그럼 다음과 같이 .git 이 생성된 것을 확인할 수 있다.

    [GitLab] Permission denied (publickey).

    [GitLab] Permission denied (publickey).

    깃 프로젝트를 생성하고 깃에 clone하려고 하는데 다음 명령어를 입력하니 $ git clone git@gitlab.com:/project.git 다음과 같은 오류가 떳다 공개키 오류인데 $ ssh-keygen 다음 명령어를 치고 엔터 y 엔터 엔터 하면 ssh키가 생성된다 폴더에서 .ssh 폴더를 찾아서 .pub 는 public 으로 메모장으로 열어서 깃 프로필 이미지 -> Profile -> Edit Profile -> SSH Keys 에 들어가 메모장으로 열었던 공개키 전체를 복사해 key 안에 붙여넣으면 title은 자동으로 작성된다.