본문 바로가기

Tips/Git

[Git] Local Project에서 Git Repository랑 연동

반응형

IDE Tool : Visual Studio Code (VS Code)


 

1.  git 초기화 설정

  [ control + ` ] 누르면, 프로젝트 내 TERMINAL 이 실행됨

  최초 git의 초기화를 설정해줘야 이후 commit, push할때 default로 설정되어 연결된다.

$ git config --global user.name [작성자 이름]
$ git config --global user.email [작성자 이메일 주소]

 

2. git 연결

$ git clone https://github.com/iamJenny/ShareStudy.git

Cloning into 'ShareStudy'...
remote: Enumerating objects: 4, done.
remote: Counting objects: 100% (4/4), done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 4 (delta 0), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (4/4), done.

 

3. 이후의 commit과 push는 사용법은 동일하다.

  Terminal로 git 명령어로 진행하셔도 되고, VScode에서 지원하는 tool을 이용해도 된다.

 

VScode tool 로 git 명령어를 실행하는 방법

 

반응형

'Tips > Git' 카테고리의 다른 글

[Git] 충돌 해결, Conflict solution  (0) 2020.10.05
[Git] 사용법  (0) 2020.06.13

❥ CHATI Github