반응형

1. 해결과정

git commit을 하고 git push origin master를 하였는데

$ git push origin master
error: src refspec mater does not match any
error: failed to push some refs to 'https://github.com/~~~~~'

이렇게 에러발생

 

그리고 git status를 하였으나

$ git status
fatal: unable to read tree ~~~~~~~~~~~~~~

이런 에러 메시지 또 발생.....

 

그래서 구글링을 들어갔다.

 

검색어는 'error: src refspec main does not match any error: failed to push some refs to'

 

게시글중에 master 브랜치가 없어져서 생기는 문제라는 글을 보고

git add .
git commit -m "~~~~~~~~"
git push origin master

했더니 정상으로 이전에 올라가지 않았던 것까지 업로드가 되었다.

 

2. 참고한 링크

https://stratosphere.tistory.com/90

반응형
반응형

1. Util 추가

- 다른 장소에서도 쓰일만한 기능들을 모아놓는 공유창고라고 생각하면 된다.

- 다른 곳에서도 날짜생성이 필요할 것 같아 Util에 기능을 추가하였다.

 

2. 날짜 기능 추가

- NowDate에 날짜를 추가하는 객체이다.

 

3. 참고한 링크

- 날짜 추가하는 기능은 다음 링크에서 가져왔다.

https://coding-factory.tistory.com/259

 

4. 작업한 코드

https://github.com/wjxor/untact/commit/2a911edbb5cf35ef811551d169d64e28ff839828

반응형
반응형

1. 게시물 수정

- 게시물 선택하는 selArticle 변수 생성

- for문으로 id가 일치하는 게시물을 selArticle에 넣는다.

- selArticle이 null이면 F-1과 존재하지 않는다는 값으로 리턴

- 존재하면 입력받은 title과 body를 setTitle과 setBody로 수정한다.

 

2. 작업한 코드

https://github.com/wjxor/untact/commit/26f560d544a9a2d696c4966c5c9c01bb326c76b6

반응형

+ Recent posts