Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Git Commit 되돌리는 법 #4

Open
damien911224 opened this issue Sep 14, 2017 · 0 comments
Open

Git Commit 되돌리는 법 #4

damien911224 opened this issue Sep 14, 2017 · 0 comments

Comments

@damien911224
Copy link
Owner

damien911224 commented Sep 14, 2017

Git Commit 되돌리는법

git log를 해당 git repository에서 터미널에 입력 한다.

git log

엔터를 누르며 아래로 목록을 읽어가며,
돌아가고 싶은 상태의 커밋 옆 해쉬코드를 복사 한다.

git reset --hard (commit hash)

((commit hash) 전체 부분을 해쉬코드로 채우면 된다 괄호 까지 모두)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant