<Git>8. Github push

빡찌's avatar
Oct 18, 2024
<Git>8. Github push
notion image
깃헙 로그인 하고 저기 가서
notion image
notion image
notion image
이렇게 한 후 create repository
notion image
깃 저장소 생성 완료~ 저게 주소다 (아마도)

Github = 클라우드 파일 저장소

⇒ 형상관리(버전관리)가 가능한 클라우드 저장소
 
notion image
폴더 두개 생성 해준다
그리고 company폴더에
notion image
myapp이라는 폴더를 만들어준다.
 
notion image
만든 myapp 폴더에 작업 영역을 만들어줌(git init)
 
notion image
이렇게 하면 파일이 생성 되나 보다,,,,
notion image
 
이렇게 회사 컴퓨터에서 만든것을 Github 컴퓨터의 myapp으로 업로드 하고싶을때는?

Origin 이라고 한다..

Origin(업로드)을 하기 전 연결을 해야하는데 그것을

git remote 라고 한다..

git remote add origin http주소

 
notion image
git remote -v는 연결이 됐는지 확인하는 것
notion image
근데 주로 git ls-remote 이렇게 확인함
 

이제 연결이 됐으니 업로드를 해보자

파일만 업로드 해서 될게 아니라 병합까지 해야함
이 두가지를 한꺼번에 해주는 것이 바로바로

push!

notion image
 

git push origin master

notion image
명령어를 치면 저렇게 연결하라는 알림창이 뜨고
이미 로그인 되어 있기 때문에
sign in with your browser을 누르면 됨
notion image
연결이 됐다면 콘솔창에 이렇게 뜨고
 
notion image
내 깃헙에 들어와서 새로고침 해보면
이렇게 올라와있음
notion image
master 가지도 확인 됨
 
업로드 까지 완료!!!!! 다음엔 다운로드를 받아보자 :) 미소..
Share article

prettytree