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 | 29 | 30 | 31 |
Tags
- 인터페이스
- merge
- pom.xml
- react
- 자바
- 영속성 컨텍스트
- 스프링 컨테이너
- list
- 깃허브
- 트랜잭션
- mysql
- github
- 객체
- java
- 스프링
- DI
- 이클립스
- 자동주입
- 빈
- 어노테이션
- spring
- Spring legacy Project
- 상속
- @Bean
- 의존성주입
- Spring 개발환경 설정
- springboot
- @transactional
- 리액트
- JVM
Archives
- Today
- Total
DEVLOG
git commit & push후 이전 commit 시점으로 돌아가기 본문
1. git log 입력 -> 원하는 commit 시점의 해쉬값 복사
git log
2. git reset --hard 해쉬값 입력 -> 원격저장소 원하는 시점으로 복원
git reset --hard
3. 원격저장소 =/= 깃 저장소 -> git push -f
git push -f
-> 원격저장소 = 깃 저장소
'GitHub' 카테고리의 다른 글
[GitHub] Pull is not possible because you have unmerged files 에러 해결방법 (0) | 2022.07.22 |
---|---|
[GitHub] 파일명 대소문자만 변경 시 에러 해결 방법 (0) | 2022.07.22 |
[Git push 에러 해결] Updates were rejected because the tip of your current branch is behind its remote.. (0) | 2022.07.13 |
branch 개요 (0) | 2022.04.26 |
commit mesage 변경 (0) | 2022.04.24 |
Comments