반응형
250x250
Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
Tags
- codebuild
- codedeploy
- codedeploy error
- PostgreSQL
- 도커
- Spring Error
- aws cicd
- JavaScript
- AWS CI/CD 구축하기
- aws
- Jenkins
- docker
- bootstrap
- chart.js
- node
- SQL
- Python
- Airflow
- kubeflow
- Kafka
- VPN
- java bigdecimal
- chartjs
- openlens
- Flux
- redis
- IntelliJ
- Spring
- COALESCE
- codepipeline
Archives
- Today
- Total
Small Asteroid Blog
[Git] [rejected] master -> master (non-fast-forward) 해결 방법(강제push) 본문
도구/Git
[Git] [rejected] master -> master (non-fast-forward) 해결 방법(강제push)
작은소행성☄️ 2021. 2. 19. 16:50728x90
git 을 다른 아이디로 다시 연결하고 git push 작업을 진행하려고 했다.
git push --set-upstream origin master
위의 명령어로 실행해도 rejected 라면 push가 되지 않았다
git push --set-upstream origin +master
+ 를 붙이면 강제 push 라서
git pull 명령어를 실행 후 git push 를 실행할 것을 추천드린다.

728x90
반응형
'도구 > Git' 카테고리의 다른 글
| [git 블로그] 깃허브 블로그 만들기 (github.io) (0) | 2021.04.11 |
|---|---|
| git 초기설정 및 연결하기 (0) | 2021.03.29 |
| WARNING! Using --password via the CLI is insecure. Use --password-stdin (0) | 2020.11.03 |
| .git 삭제 명령어 / git 연결끊기 (0) | 2020.10.30 |
| fatal : not a git repository (or any of the parent directories): .git (0) | 2020.10.30 |