github 깃허브 초기설정

minm·2024년 6월 27일

초기설정

$ git config --global user.name "본인 이름"
$ git config --global user.email "본인 이메일"
$ git init
$ git remote add origin https://github.com/유저이름/레포지토리명

클론 땡기는 법

$ git clone https://github.com/유저이름/레포지토리명.git

복사하기 / 붙여넣기

복사 시에는 Ctrl + Ins
붙여넣기 시에는 Shift + Ins

git add .
git commit "커밋 메시지"
git push origin master

강제병합

git checkout master
git branch main master -f 해당 브랜치를 강제로(-f) master 브랜치의 현재 상태로 리셋
git checkout main
git push origin main -f 원격 저장소에 main 브랜치를 강제로(-f) 푸시

README 작성법

MP4 동영상 파일을 gif 파일로 변경해야 함

issues로 들어가서 동영상 파일 올리면 링크로 변환

<img src="이미지 링크" width="너비 " height="높이">

<img src="https://github.com/깃허브 이름/레포지토리명/assets/147581729/bea03d57-a9d1-4c54-a073-879e3bfd0942">

0개의 댓글