본문 바로가기

기타공부

[github] master -> master (non-fast-forward)오류

1) master -> master (non-fast-forward) error

git fetch origin master:tmp

git rebase tmp

git push origin HEAD:master

git branch -D tmp

 

 

master -> master (non-fast-forward)오류

 

2) .gitignore 전에 이미 파일을 업로드 한 경우

git rm -r --cached .

git add .

git commit -m "fixed file commit"

 

https://stackoverflow.com/questions/28429819/rejected-master-master-fetch-first/40711218#40711218?newreg=cf73c9d57dd74ccebb79ec7fb70fb7af

! [rejected] master -> master (fetch first)

Is there a good way to explain how to resolve "! [rejected] master -> master (fetch first)'" in Git? When I use this command $ git push origin master it display an error message. ! [rejected...

stackoverflow.com

 

'기타공부' 카테고리의 다른 글

개념 공부  (0) 2020.04.25
[hackerrank]sorting 공부(comparable, comparator), 계수정렬  (0) 2020.03.27
[JSON Schema] convert json to java POJO  (0) 2020.03.22