본문 바로가기
728x90

Git10

2. 깃 블로그 만들기. Ruby 공식사이트 Downloads Which version to download? If you don’t know what version to install and you’re getting started with Ruby, we recommend that you use the Ruby+Devkit 3.2.X (x64) installer. It provides the biggest number of compatible gems and installs the MSYS2 Devkit rubyinstaller.org 에서 Ruby를 다운로드. 깃 로컬저장소를 로컬 C에 해두셨다면, Ruby도 맞춰서 C에 해주셔야합니다. # Jekyll ✔️ 1. 로컬에 Jekyll을 설치 gem install jekyll.. 2023. 12. 30.
1. 깃(Git) 블로그 만들기 1. 깃에 접속해서. 새로운 Repository를 만들어 줍니다. Repository name : username.github.io 의 형식으로 만들어 줍니다! ex) KimS.github.io -설정- Public으로 설정! Add a README file 체크! Create repository 2. 자신의 컴퓨터 또는 노트북에 repository를 clone 하자 개인 PC에서 원하는 디렉토리에 cmd 접속. git clone 'HTTPs주소' 입력 3. Clone 한 폴더에서 index.html 파일을 생성하자 터미널에서 아래의 형식으로 index.html 파일을 만들 수 있습니다. cd username.github.io 입력 (디렉토리 이동) echo "Hello World" > index.htm.. 2023. 12. 24.
Git Push 하는 방법 //저장소 생성 및 연결 $ git init $ git remote add origin [원격저장소 주소 url] // master 브랜치를 main으로 바꿔주는 것. $ git branch -m master main //파일 업로드 $ git pull origin main $ git add . $ git commit -m "commit message" $ git push origin main 2023. 9. 6.
git push 오류 해결 방법 (nothing to commit, working tree clean) 1) rm -rf .git/ 2) git init 3) git remote add origin 레포지토리 주소 4) git add . 5) git commit -m "메시지" 6) git push -f origin main 1. rm(remove), -rf(재귀적으로 삭제하고 확인을 요청하지 않고 삭제(force)하도록 시스템에 지시), git/디렉토리는 Git 저장소의 루트에 있는 숨겨진 디렉터리, 이 디렉터리에는 Git가 프로젝트의 기록과 내용을 추적하는 데 사용하는 모든 구성, 메타데이터 및 개체 데이터베이스가 들어 있습니다. 6. -f(force) 강제로 푸쉬. 2023. 8. 31.
728x90