참조 : http://www.randallkent.com/development/gitignore-not-working


git rm -r --cached .

git add .

git commit -m "fixing .gitignore"


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

Git 기초 설정  (0) 2014.12.26
git 명령어 모음  (0) 2014.10.25

설정

트랙백

댓글

Git 기초 설정

G/Git 2014. 12. 26. 01:27

git 파일 다운로드 - http://git-scm.com/


SSH 설정

http://nararacds.tistory.com/45


SSH 설정 시, 

ssh-agent -s

ssh-add ./.ssh/id_rsa 부분에서

Could not open a connection to your authentication agent의 오류가 뜰 경우,

eval $(ssh-agent) 이렇게하면 된다.


깃헙 기초 가이드

http://rogerdudler.github.io/git-guide/index.ko.html


만약 기존에 있던 원격 저장소를 복제한 것이 아니라면,

git remote add origin <원격 서버 주소> ( git@github.com:myname/Test.git )

와 같이 하게 되는 데, 

잘못 입력하게 되는 경우가 있다.

이때, git push origin master 를 하게 될 경우 Remote가 이미 존재한다는 에러가 뜨게 된다.

따라서 기존 remote 설정을 삭제해야한다.

git remote rm origin 을 하고 다시 git remote add origin <원격 서버 주소>를 제대로 추가해주면 끝.



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

gitignore 적용이 안될 시  (0) 2015.03.26
git 명령어 모음  (0) 2014.10.25

설정

트랙백

댓글

git 명령어 모음

G/Git 2014. 10. 25. 10:58
1. index 지우기
git rm --cached [file]
2. comment 남기기

git commit -m 'First commit'

Q1. Make the current commit the only (initial) commit in a Git repository?
http://stackoverflow.com/questions/9683279/make-the-current-commit-the-only-initial-commit-in-a-git-repository


명령어 모음집

참조 : http://www.dreamy.pe.kr/zbxe/CodeClip/95414

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

gitignore 적용이 안될 시  (0) 2015.03.26
Git 기초 설정  (0) 2014.12.26

설정

트랙백

댓글