티스토리 뷰
새로 프로젝트를 git에 push하기 위해서 작업을 하였는데 push하는데 에러가 발생하였습니다.
$ git push -u bitbucket master
error: src refspec master does not match any.
error: failed to push some refs to 'https://***@bitbucket.org/***/***-***-***.git'
이런 메세지가 나오면서 잘 안될겁니다.
저 같은 경우에는 add 하고 commit까지 하였다고 생각하고 push를 하였던게 잘못이었습니다. :D
당연히 해결 방법은 commit을 하여 주면 됩니다.
git add .
git commit -am "initialization commit"
git push -u origin master
이제는 commit 안한지도 기억이 잘 안나네요 ㅎㅎ
'Version Control' 카테고리의 다른 글
| git. Adding client public key to the git server. (0) | 2020.02.15 |
|---|---|
| git. Configure git server with SSH on CentOS 8 (0) | 2020.02.15 |
| Mac. git server 구성하기 (0) | 2020.02.15 |
| git. password 변경된것 Local에 적용하기 (0) | 2019.12.18 |
| github에 100MB 이상의 파일을 Push 할때 에러 발생 (0) | 2019.08.07 |
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- github
- go
- Codable
- war
- docker
- Java
- android
- cocoapods
- Windows
- tomcat
- nodejs
- SWIFT
- golang
- ubuntu
- php
- Gradle
- rxswift
- centos8
- windows10
- enum
- Xcode
- Kotlin
- MySQL
- git
- Python
- CentOS
- Linux
- Spring
- intellij
- ios
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | ||||
| 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| 11 | 12 | 13 | 14 | 15 | 16 | 17 |
| 18 | 19 | 20 | 21 | 22 | 23 | 24 |
| 25 | 26 | 27 | 28 | 29 | 30 | 31 |
글 보관함