git 리포지토리 여러개 사용 중 push 안될때

Updates were rejected because a pushed branch tip is behind its remote counterpart.
출처:
①이럴때는 먼저 원격지에서 최신내용을 pull 해온다.
$git pull origin master
 
②겹치는 코드가 있다면 충돌(conflict)이 발생할텐데 어떤 코드를 넣을지는 본인선택 이단계는 conflict가없다면 생략된다.
③다시 푸시해본다
$git push --set-upstream origin master