일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- 1793번
- 알고리즘
- codility
- caniuse
- 분할정복
- 9251번
- 2163번
- 1057번
- 입이 트이는 영어
- WebSecurityConfigurerAdapter
- 11047번
- 1759번
- 2630번
- 백준
- BinaryGap
- Spring Security
- 1992번
- 18406번
- 파이썬
- 신규아이디추천
- EBS어학당
- github
- 영어
- 프로그래머스
- Java
- 11727번
- SecurityFilterChain
- 권주현의 진짜 영국 영어
- programmers
- python
Archives
- Today
- Total
철갑이의 이모저모
[github] git push error 해결 방법 본문
728x90
1. fatal: Authentication failed for 'https://~' 발생시
- github user id, password 확인
- 해당 저장소가 예전 프로젝트와 연결 되어있는지 확인
$ git remote -v // 리모트 저장소 확인
$ git remote remove origin // 저장소 다르다면 삭제
$ git remote add origin repository주소 // 원격 저장소 주소 등록
2. error: failed to push some refs to 'https://~' 발생시hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
- 깃과 로컬이 동기화가 되어있지 않아서 발생
$ git pull --rebase origin master //동기화
참고용 git 공부 사이트
Git - Book
git-scm.com
누구나 쉽게 이해할 수 있는 Git 입문~버전 관리를 완벽하게 이용해보자~ | Backlog
누구나 쉽게 알 수 있는 Git에 입문하신 것을 환영합니다. Git을 사용해 버전 관리를 할 수 있도록 함께 공부해봅시다!
backlog.com
728x90
'Git' 카테고리의 다른 글
[github] github에 프로젝트 올리기(default 브랜치가 master -> main 으로 변경) (0) | 2022.07.09 |
---|