thesuhu

Git Restore

Nov 2nd, 2021 (edited)
1,765
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.19 KB | None | 0 0
  1. # mengembalikan ke posisi semula
  2. git reset head
  3. git restore . # ini akan mengembalikan file ke posisi semula
  4.  
  5. # undo/unstaged file yg udah terlanjur git add
  6. git restore --staged tes.js
  7.  
Add Comment
Please, Sign In to add comment