1. 깃허브 가입 깃 설치
- github.com 에 접속하여 가입한다.
- Test 라는 저장소를 생성한다.
- https:/github.com/nampluskr/Test
- 다음 주소에 들어가서 윈도우용 git을 다운받아 설치한다.
- https://git-scm.com/downloads
- (2.16.2) 64-bit version of Git for Windows
2. 깃에서 commit/push 실행하기
- Git Bash 실행
$ git config --global user.name "Your Name Here"
$ git config --global user.email "your_email@youremail.com"
$ mkdir /d/Work/Project/Test
$ cd /d/Work/Project/Test
$ git init
$ touch Readme.txt
$ git status
$ git add Readme.txt
$ git commit -m "Add Readme.txt"
$ git remote add origin https://github.com/nampluskr/test.git
$ git remote -v
$ git push
$ git push origin master
=======================================
create a new repository on the command line
=======================================
echo "# test" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/nampluskr/test.git
git push -u origin master
=======================================
push an existing repository from the command line
=======================================
git remote add origin https://github.com/nampluskr/test.git
git push -u origin master
댓글 없음:
댓글 쓰기