Skip to content

웹 모의해킹 실습용 웹사이트 제작(명석)

Notifications You must be signed in to change notification settings

WebH3ll/myoungseok

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

myoungseok

깃허브와 로컬 폴더 연결

1. 깃 설치

https://git-scm.com/downloads

image

Download for Windows ->  64-bit Git for Windows Setup.

다운로드 후, 기본 설정값 세팅 후 설치

2. xampp 폴더 중에서 htdocs 폴더에 있는 php 파일만 업로드

image

C:\xampp\htdocs로 이동

폴더에서 마우스 우클릭 후 git bash here 선택

image

계정 정보 등록

git config --global user.name "깃허브이름"
git config --global user.email "깃허브이메일"

깃허브 이름 -> 자신의 깃허브 페이지에서 나오는 이름

깃허브 이메일 -> 깃허브 로그인 할때 사용하는 이메일 계정

아래의 정보 중 https://github.com/WebH3ll/myoungseok.git 이 부분만 자신의 레포지토리 주소 복사해서 바꿔넣기

git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/WebH3ll/myoungseok.git
git push -u origin main

image

성공적으로 명령어가 들어갔다면 현재 로컬 폴더와 원격 레포지토리가 연결된 것임

3.gitignore

vscode로 접속해 보면 다음과 같이 나오는데, 원격 레포지토리와 현재 로컬 폴더간의 차이가 발생한 파일들의 리스트가 나옴

image

htdocs폴더에서 모든 파일을 원격 레포지토리에 저장할 것이 아니기 때문에 동기화를 제외할 폴더들을 .gitignore파일에 작성해 준다.

.gitignore 파일 생성

image

다음과 같이 동기화를 제외할 기존에 설치된 폴더들을 넣어준다.

image

그러면 동기화 파일 목록이 다음과 같이 줄어든다.

image

이제 commit을 하여 원격 레포지토리로 업로드

4. 업로드

+를 눌러서 전부 변경사항에 추가

image

커밋 메시지를 작성 후 커밋(오른쪽 상단에 있는 v누르기)

image

변경 내용 동기화 클릭

image)

깃허브에 접속해서 동기화 확인

image

클라우드에 웹페이지 올리기

AWS Free Tier 가입

https://transferhwang.tistory.com/307

EC2 생성 및 연동

https://kangmyoungseok.github.io/cloud/aws-install/

About

웹 모의해킹 실습용 웹사이트 제작(명석)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published