IT 프로그래밍/Golang

[GoLang](6) 깃허브에 vscode파일 올리기

잉휴 2021. 6. 17. 20:50

 

$ git remote add origin https://github.com/hyojeongpark/Golang1 

(이 주소는 자신이 올리고자 하는 깃허브 repository의 주소를 복사한 값입니다)

요 주소


$ git remote -v (주소가 잘 입력 되었는지 확인)
origin  https://github.com/hyojeongpark/multiArray.git (fetch)
origin  https://github.com/hyojeongpark/multiArray.git (push)

 

$ git add .

git commit -m "Initial commit" 또는 아래 방법으로!

git push -u origin master 

option (enter for default): 1

(git branch 가 master 가 맞는지 확인해보기 

$ git branch 
* master )

하면 위 화면처럼 authorization 관련 창이 나옵니다 (chrome을 기본웹브라우저로 설정)

 

Authorize해주고

 

 

이 화면에서 f5(새로고침) 해주시면

아래와 같이 파일이 들어옵니다

          끗-☆       

 

VScode에서 수정하면서

1. git add .

2. commit

3. $ git push -u origin master 라고

입력해주면 실시간으로 업데이트가 가능합니다!

 

+만약 더 이상 수정할 내용이 없으면 아래와 같이 저 uploading an existing file 누르면 간단해요

드래그앤 드롭이 나와서 그냥 올려도 파일을 볼 수 있었다

맞는 방법인지는 모르겠다

아무든 파일별로 알아서 잘 올라감!

Golang 관련 자료는 이전 포스팅에 올려놓았으니 참고해주세요!