smallerhand / newbie

(mostly) easy coding examples (just practice, not worth reading)

Home Page:https://smallerhand.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GIT 시작하기

git을 시작하는 가장 쉬운 방법

(진짜 시작만 하는 거예요 ^^;;)

1. git을 설치한다.

http://msysgit.github.com/
여기서 다운받으세요 :)

2. cmd(terminal)창에서 이름, 메일주소 설정하고 확인

git config --global user.name "이름"
git config --global user.email 깃허브 메일주소
git config --list

3. git 폴더를 만들 상위폴더로 가서 git폴더를 만듬

cd C:\
mkdir git
(git에 연동시킬 폴더를 만들어주세요)

4. git 폴더로 이동해서 git 을 이용할 디렉토리로 지정

cd git
(git에 연동시킬 폴더(위에서 만든)로 들어가주세요)
git init

5. github 에 생성한 저장소들 내려받기, 해당 폴더로 이동

git clone git://github.com/smallerhand/python1.git
cd python1

6. 내가 만든 파이썬 파일들 해당 폴더로 옮긴 다음에 add, commit, push

git add *.py
(만약 모든 형식의 파일을 올리고 싶다면, *.py 대신 -A 또는 --all을 씁니다. git add -A 이렇게.)
git commit -m all
git push https://github.com/smallerhand/python1.git

7. github 상에서 python1 repository안에 있는 파일을 수정했을 때.

cd python1
git pull https://github.com/smallerhand/python1.git

이상 git의 제일 basic한 사용법이었습니다.

참고

https://nolboo.kim/blog/2013/10/06/github-for-beginner/
https://git-scm.com/book/ko/v1/Git%EC%9D%98-%EA%B8%B0%EC%B4%88

About

(mostly) easy coding examples (just practice, not worth reading)

https://smallerhand.github.io/


Languages

Language:Python 75.9%Language:R 24.1%