[ 깃허브 ] Github에 프로젝트 업로드하기

반응형

0. 가장 먼저 Git을 설치한다. 

git-scm.com/downloads

 

Git - Downloads

Downloads macOS Windows Linux/Unix Older releases are available and the Git source repository is on GitHub. GUI Clients Git comes with built-in GUI tools (git-gui, gitk), but there are several third-party tools for users looking for a platform-specific exp

git-scm.com

 

1. Github에서 새로운 저장소를 만들어준다.

 

etc-image-0

2. Repository 이름을 정해주고 생성해준다. 아래의 README 파일은 만들어도 되고 안만들어도 된다. repository가 어떤 내용을 담은 소스코드인지 설명해주는 파일.

 

etc-image-1

3. 생성을 해주었다면 아래 레포지토리의 주소를 복사한다. 

etc-image-2

 

4. 깃허브에 업로드할 파일을 클릭하고 우클릭하여 git bash를 실행한다. 

 

etc-image-3

5. 실행을 했다면 아래의 명렁어를 입력한다. 

 

>> git config --global user.name "깃허브 이름"

 

>> git config --global user.email "깃허브 가입 이메일"

 

>> git init

 

>> git add .

 

>> git status

 

>> git commit -m "주석"

 

>> git remote add origin "깃허브 레포지토리 주소"

 

>> git push -u origin master

728x90
반응형