github에 처음 push하기위해서 msysgit을 사용한다. (GUI는 재미없음)
1. msysgit을 설치하고 실행
2. github에 올리고자 하는 workspace로 가서 오른쪽클릭->git bash를 실행
(만약 git bash가 없으면 그냥 시작프로그램에서 Git Bash 실행해서 cd 명령으로 이동)
3. Local Repo 생성. 아래의 명령어를 치면 master branch가 생성된다.
$ git init
$ git add .
4. 첫 Local Commit
$ git commit -a -m "메시지 입력"
5. Local Git에서 사용할 global 변수 설정
$ git config --global user.name "Author 를 위한 사용자 이름"
$ git config --global user.email 사용자Email
6. github에서 미리 생성 해놓은 .git repo 주소에 local origin을 add
$ git remote add origin https://github.com/ManSung-Kim/SoundSpreadingProject.git
7. local origin을 remote master(github 서버)에 push
$ git push -u origin master
push 성공시 아래와 같이 뜬다.
Username for 'https://github.com': ###################
Password for '######################
Counting objects: 29, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (23/23), done.
Writing objects: 100% (29/29), 8.67 KiB | 0 bytes/s, done.
Total 29 (delta 0), reused 0 (delta 0)
To https://github.com/##########/SoundSpreadingProject.git
* [new branch] master -> master
Branch master set up to track remote branch master from origin.
8. github에 접속해서 push 확인
끝!
% git 명령어는 구글링
% git commit 전에는 꼭 git status와 git log -1로 상태 확인(소스날리기싫으면)
'소프트웨어 > SW' 카테고리의 다른 글
[IDE] 웹 c++ IDE (0) | 2021.04.02 |
---|---|
포토샵 메뉴가 사라져버렸을때 초기화 (0) | 2013.10.26 |
카카오톡PC에 관한 글 (0) | 2013.10.20 |
메타데이터란? (0) | 2013.09.25 |
language간의 속도 차이 (0) | 2013.09.13 |
visual c => Ms Word로 붙여넣기시 글씨깨짐 방지 (0) | 2012.12.22 |
내폰엔 wifi-direct가 없다? '탭파우치라이트'가 있다!!!! (0) | 2012.09.14 |