html, css/etc

github

mnmhbbb 2020. 6. 2. 13:58

1) 서버와 클라이언트

http://info.cern.ch 

 

Web Browser     Web Server

클라이언트   - >   서버

  (request)         (response)

 

수학은 이해하는 게 아니라, 익숙해지는 것.

익숙해지려는 수많은 방법 중 하나가 이해일 뿐이다.

 

 

 

 

 

2) github

내가 만든 html을 홈페이지로 만들기

-[create repository]

-Initialize this repository with a README 이 문구 꼭 체크!

-upload files로 내 파일 끌어오기.

-setting에서 github pages - source - master branch

-Your site is ready to be published at (링크) 하면서

링크가 뜰 것이다. 

그게 내가 만든 html을 어디서나 볼 수 있게 인터넷 페이지로 만든 링크이다.

 

+그런데, 404 오류가 발생함 -> Repository name을 내 html 폴더 이름과 같게 해주면 됨

+'파일명으로 지정해주지 않으면 알아서 index 파일을 찾아서 메인 화면으로 설정시키도록 되어있다'

 

 

+

github

-Create a New Repository on your hard drive...
-Name 입력하고,,
-Local path는 내가 지정한 폴더에 하위에 repository명의 폴더가
자동으로 생성됨
-initialize this repository with a README 체크
끝.

-Publish repository 누르고
비즈니스 계정이 아니니까 깃허브닷컴 선택하면 됨.

 


+ 호스팅 하려면,
repository만 만들면 안되고
settings에서 github pages - master branch 로 변경하면 
Your site is published

이런 메세지로  도메인이 뜸!

 

+ vscode 

A - Added (This is a new file that has been added to the repository)

M - Modified (An existing file has been changed)

D - Deleted (a file has been deleted)

U - Untracked (The file is new or has been changed but has not been added to the repository yet)

(파일이 새 파일이거나 변경되었지만 아직 리포지토리에 추가되지 않음)

C - Conflict (There is a conflict in the file)

R - Renamed (The file has been renamed)