폴더 깃허브에 업로드

DongJoo Kwak·2022년 7월 20일
0

세팅

#윈도우

GIT 다운로드 -

https://git-scm.com/

#리눅스

sudo apt-get install git

sudo yum install git

git config --global user.name '이름'

git config --globall user.email '이메일'


  1. 업로드할 폴더가서 git bash 클릭! (우클릭)

git bash here를 클릭해준다!

  1. 폴더 Add - Commit - Push

Git 오류!

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

--> git init을 진행해주지 않아서 생기는 오류

우선 git 레포지토리를 생성해준다!

명령어 순서

$ git init

$ git remote add origin [깃헙 repository주소]

$ git status

$ git add .

$ git commit -m "커밋 로그"

$ git remote -v

$ git push origin master(main)

profile
즐거운 개발 공간

0개의 댓글