nothing to commit, working tree clean

dev bourgeois·2024년 1월 25일
0

git

목록 보기
1/11
post-thumbnail

깃허브에 커밋이 안되는 오류가 발생했다

❇️해결 방법

rmdir /s /q .git
git init
git commit -m “Commit message”
git remote add origin 레포지토리 주소
git push -f origin master

rmdir /s /q .git 는 윈도우 기준이고 Unix, Linux 시스템에서는 rm -rf .git/ 를 사용한다.


git push

fatal: The current branch setting/pull-request-template has no upstream branch.
To push the current branch and set the remote as upstream, use

    git push --set-upstream origin setting/pull-request-template

To have this happen automatically for branches without a tracking
upstream, see 'push.autoSetupRemote' in 'git help config'.

0개의 댓글