git 설치 후

cmd 창에서 

git config --global user.name yeonilil

git config --global user.email gwagseoyeon@gmail.com

 

C드라이브에 Education 폴더 만든 후

cd C:\Education

해당 폴더로 이동

>git clone https://github.com/yeonilil/git_example.git 

git 저장소 주소를 해당 명령어를 통해 입력

clone을 폴더에 받은 폴더도 하나의 저장소로 사용하게 - local repository

 

폴더 안에 텍스트 파일, 코드 파일 등 올린 후

C:\Education\git_example>git add hi.txt

C:\Education\git_example>git commit -m "Add Text File [hi.
txt]"


[main (root-commit) 9c33c4c] Add Text File [hi.txt]
 1 file changed, 1 insertion(+)
 create mode 100644 hi.txt

 

git push

를 통해 실제 git에 적용시킬 수 있

+ Recent posts