2022. 1. 9. 00:09ㆍ학습 기록
유튜브 메모밍 채널을 보고 차근차근 따라갔다! 아직 익숙하지 않아서 간단하게 정리하고자 한다.
" Push(git에 올리기), Pull(git에서 가져오기) : Push 전에 Pull이 있다. "
(처음 생성할 때는 상관없지만 작업할 때 가져오고 수정한 다음에 올려야한다. 그냥 올리면 이전에 git에서 작업한게 날라가니까 기억하기!)
1. repository 만들기
new repository 클릭
repository 이름 입력하고
create repository
: 이렇게 해서 생기는 주소 복사하기 = repository adress
2. root 폴더 만들기 (web상의 git과 연결될 Local Folder)
새폴더 생성
Git Bash here
$ git init
$ git remote add origin repository adress
3. Push(git에 올리기)
폴더에 Git Bash here
$ git status (git과 폴더간의 싱크를 확인)
$ git add . (git에 트래킹)
$ git commit -m "커밋 내용"
$ git push origin master
로그인하기 (아이디, 비밀번호(토큰))
4. Pull(git에서 가져오기) : 다른 사람 git 가져오기
가져오고 싶은 git 주소 복사
폴더 Git Bash here
$ git init
$ git remote add origin git 주소
$ git pull origin master
5. Push(git에 올리기) : 내 파일에서 수정 후 업데이트 버전관리
폴더 Git Bash here
$ git status
$ git add .
$ git commit -m "커밋 내용"
$ git push origin master
로그인
6. Pull(git에서 가져오기) : git에서 수정 후 업데이트 버전관리
폴더 Git Bash here
$ git pull origin master
+ commit 과정에서 이런 오류 발생하면
Please tell me who you are .Run git config --global user.email "you@example.com" git config --global user.name "Your Name" to set your account's default identity.
$ git config --global user.name "user name"
$ git config --global user.email "user e-mail"
입력하면 오류 해결
kimjihooo - Overview
kimjihooo has one repository available. Follow their code on GitHub.
github.com
'학습 기록' 카테고리의 다른 글
딥러닝 데이터와 세 가지 기본 신경망 (0) | 2022.02.04 |
---|---|
딥러닝 기본 개념 정리 (0) | 2022.01.29 |
K-Nearest Neighbors, Kernel Density Estimation (0) | 2021.12.11 |
Dimension reduction : PCA (0) | 2021.12.08 |
SVM (Support Vector Machine) (0) | 2021.12.07 |