형상관리/Git 35

GitHub 에러 remote: Repository not found.

remote: Repository not found. 일단 repository not found가 뜨는 이유는 맥의 경우 타 계정의 git 을 땡겨오면, key chain이 생기기는 하는데 자기껄 바라보는게 아니라 처음 만들어져 있는 key chain을 바라보는 경우가 있다고 함 그래서 처음 git clone 을 받을 때 계정값을 박아넣어야 자신의 repository를 잘 찾아감 작성 방식은 아래와 같음 # 형식 git clone https://[git user name]@[git repository address] # 예시 git clone https://깃헙이름@github.git 이렇게 다시 소스를 땡겨오니 정상적으로 작동했다. 또 다른 계정으로 git 을 관리할 필요가 있다면 이 방법을 꼭 기억하자!

형상관리/Git 2021.03.17

cloud에 upload하기

cloud에 upload 방법 github안에서 무료 웹사이트를 제공 웹사이트를 github의 github page 도메인에 나타나게 해줌 1️⃣ gh-pages 설치 github에 업로드하는 것을 허가해주는 모듈 npm i gh-pages 2️⃣ package.JSON 설정 gh-pages가 동작하는데 필요한 homepage 설정하기 username과 project명 모두 소문자여야 함 "homepage": "https://{your github username}.github.io/{the name of your project in githun}/" 3️⃣ package.JSON의 scripts 안에 deploy script 추가해서 gh-pages 호출 deploy는 build 폴더를 upload함 ..

형상관리/Git 2021.02.24

프로젝트와 GitHub 연동하기

프로젝트와 GitHub 연동하기 1️⃣ 연동하고 싶은 프로젝트 터미널에서 git init 2️⃣ GitHub에서 repository 생성하기(URL 복사) 3️⃣ 프로젝트 터미널에서 git remote add origin 복사한 URL 4️⃣ 전부 add하기 git add . 5️⃣ 커밋하기 git commit -m "first commit!" 혹시 "*** Please tell me who you are."라는 문구가 출력되면서 Commit에 실패할 경우 아래의 설정 해주기👇 git config --global user.email "you@example.com" git config --global user.name "Your Name" 6️⃣ 푸쉬하기 git push origin master 처음 연동..

형상관리/Git 2021.02.18