에라모르겠다(‘◇’)?
git 초기 업로드 및 init 취소 본문
- git ignore 생성
https://www.toptal.com/developers/gitignore/
gitignore.io
Create useful .gitignore files for your project
www.toptal.com
사용하는 툴 + 운영체제 + 언어에 맞게 ignore생성 후 해당 프로젝트에 넣어줌
- 1. git 초기 init
git init
해당 프로젝트 내 .git 이라는 폴더가 생성 됨
- 2. 원격 저장소 repository연결
git remote [ github 주소 ]
- 3. repository에 올릴 파일 추가
git add .
- 4. git commit
git commit -m "first commit"
"" 안에 commit 메시지는 원하는대로 변경
- 5 . 원격 저장소 파일 업로드
git push -u origin master
다 입력하고 나면 이랬던 화면이
↓ 아래처럼 변하고 master에 올라간 것 확인 가능
※ 만약 init 취소하고 싶을 경우
- git init 취소
rm -r .git
Comments