git 사용할때 헷갈렸던 개념

호밀빵 굽는 쿼카·2021년 8월 18일
0

개발

목록 보기
2/21
post-thumbnail

.gitingnore

  1. git에 업로드 하지 않을 파일 설정
  2. .git 과 같은 위치에

github private repository 공유하고 싶으면,,

new repository private으로 만들고 → manage access 들어가서 collaborator 추가하고 invite하기

git에서 push 하지 않은 커밋 확인 명령어

git log --branches --not --remotes

git push 오류 error: pathspec '' did not match any file(s) known to git

한번도 commit 하지 않아서 생기는 오류

git init
git add .
git commit -m "message"
git push origin master

하면 대부분 해결된다고 함
https://rrecoder.tistory.com/88

git branch 생성 후 push 하기

git init
git remote add origin https://github.com/~.git
git pull origin master
git checkout -b master
git add .
git commit -m "message"
git push origin master

CRLF will be replaced by LF (혹은 반대)

git config --global core.autocrlf true
로 해결하기

이미 push 한 git commit 변경

git commit --amend -m "원하는 변경 내용 입력"
git push origin [브랜치명] -f
profile
열심히 굽고 있어요🍞

0개의 댓글