Skip to content

Commit

Permalink
reset 사용법
Browse files Browse the repository at this point in the history
  • Loading branch information
isGeekCode committed Apr 4, 2024
1 parent b366113 commit 182f668
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 5 additions & 0 deletions Git/Git_003_add.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ git restore --staged 파일명
단, reset은 커밋이 한 번이라도 되어서 HEAD 포인터를 가지고 있는 경우에 사용이 가능하다.

```
# 가장 많이 사용하는 방법; Head 포인터가 생겨야 사용가능
git reset --hard HEAD~1
# 성공메세지 : HEAD is now at {해시값} {커밋명}
# 스테이지에 있는 변경 사항을 작업 트리로 이동
git reset 파일명
Expand Down
2 changes: 0 additions & 2 deletions iOS-Library/About_cocoaPods_basic.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,5 +191,3 @@ sudo gem uninstall cocoapods
`해야한다`

뭔가 확장자가 .gitignore에 포함되어야 할 느낌이지만! Podfile.lock은 Pod 파일들의 버전을 픽스시켜주는 역할을 한다.다른사람에게 프로젝트를 공유할 때, 동일한 라이브러리 환경을 제공하기 위해 필수로 필요하며, 따라서 Git 으로 함께 버전관리를 해야한다.

CocoaPod

0 comments on commit 182f668

Please sign in to comment.