$ 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 관련 자료는 이전 포스팅에 올려놓았으니 참고해주세요!

'IT 프로그래밍 > Golang' 카테고리의 다른 글
[Golang](7) Go언어로 "숫자맞추기 게임" 만들기 (0) | 2021.06.18 |
---|---|
[GoLang](5) reset 과 restore (0) | 2021.06.18 |
[Golang](3) Go언어 형식지정자 총정리 (0) | 2021.06.17 |
[Golang] (4)Gitbash를 활용한 Go써보기 | ~commit 까지 (0) | 2021.06.17 |
[GoLang](2) Go 시작하기 .go와.exe파일 생성 & 기초문법 (0) | 2021.06.15 |