Git and Github-Pages

이지현·2022년 7월 13일
0

github

목록 보기
1/1
post-thumbnail

내가 보려고 만든 명령어 모음집


Git 명령어:

git init:

  • git 초기화
  • .git 폴더 생성
git init

git status:

  • git 상태 확인
git status

  • 수정된 file/staging area에 있는 file 확인
git status -s

git diff:

  • 수정사항 상세 설명
git diff

git add:

  • working directory에 있는 모file을 staging area에 옮김
git add .

ehco:

  • file에 코드 추가
echo [코드] >> [파일명.확장자]

git commit:

  • staging area에 있는 변경사항을 git repository에 이동
git commit -m "message"

Github-Pages 명령어

github-pages 수정 시:

  • 아래 명령어 모두 입력
cd /Users/jihyun/Desktop/IdeaProjects/Jihyun3478.github.io
bundle exec jekyll serve
git add .
git commit –m "message"
git push
profile
2023.09 ~ 티스토리 이전 / 2024.04 ~ 깃허브 블로그 이전

0개의 댓글