git server에 새로운 프로젝트 추가하기
Get started with command line
Step 1: Switch to your repository's directory
cd /path/to/your/repoStep 2: Connect your existing repository to Bitbucket
git remote add origin https://killsia@bitbucket.org/git_locationmapping/lm_2year.gitgit push -u origin master
위와 같이 하니 하니 다음과 같은 에러가 발생한다.
1 | fatal: Not a git repository (or any of the parent directories): .git | cs |
스택 오버 플로우에서 얻은 해답이다.
아래처럼 했더니 해결됐다.
1 2 3 4 5 | git init git remote add origin http://#@$^$%&@$#^/thsebr.git git add . git commit -m "default" git push -u origin master | cs |
git add .을 안하면 error: src refspec master does not match any. 에러가 발생한다.