반응형
Git 초기 설정
git config --global user.name '유저 이름'
git config --global user.email '가입 시 사용한 메일 주소'
Git clone (GitHub의 레파지토리를 로컬에 저장)
Git Hub에 레파지토리 생성 > git 주소 복사 > 컴퓨터에서 폴더 생성하고 싶은 위치로 가서 git bash >
git clone '깃 레포지토리 주소'
> 폴더 생성 완료
Git push (내 컴퓨터(로컬)의 수정사항을 Git hub로 커밋)
만들어진 폴더로 들어가서 git bash
git add '파일명' (폴더의 내용 전부 올리고 싶으면 git add .
입력)
git commit -m '커밋 내용'
git push origin main
Git pull (Git hub 소스파일을 내 컴퓨터로)
git pull origin main
Git pull, commit, push 취소방법
https://gmlwjd9405.github.io/2018/05/25/git-add-cancle.html
참고 자료
https://www.atlassian.com/ko/git/tutorials/rewriting-history
https://nevertrustbrutus.tistory.com/m/153
반응형
'Developer > 자료정리' 카테고리의 다른 글
정보처리기사 참고자료 (2) | 2021.07.28 |
---|