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
- 백준
- Euler circuit
- backtracking
- POJ
- Shortest path
- hashing
- Eulerian circuit
- implementation
- BFSDFS
- graph
- Euler path
- Algospot
- GCD
- CS Academy
- disjoint-set
- Segment Tree
- BOJ
- Dag
- Greedy
- Eulerian path
- DynamicProgramming
- scc
- Cycle detecting
- bitmask
- BST
- dynamic programming
- flows
- graph modeling
- Sieve_of_Eratosthenes
- mathematics
Archives
- Today
- Total
그냥 하는 노트와 메모장
git reset 본문
* git reset
git reset
위 명령어로 해당 파일을 Unstated 상태로 변경할 수 있다.
--hard 옵션
이 옵션과 함께 사용하면 워킹 디렉터리 파일까지 수정되기에 조심해야 한다(워킹 디렉토리에서 해당 파일의 내용이 맨 처음으로 reset된다..). --hard 옵션만 사용한다면 git reset 명령은 Staging area 파일만 조작하기 때문에 위험하지 않다.
'Git bash' 카테고리의 다른 글
| Branch (Ongoing) (0) | 2018.05.03 |
|---|---|
| git term (Ongoing) (0) | 2018.04.17 |
| git commit (0) | 2018.04.17 |
| git diff/ difftool (0) | 2018.04.17 |
| git rm (0) | 2018.04.17 |
Comments