What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2021-09-27 16:51:02
git get latest
Case 1: Don’t care about local changes Solution 1: Get the latest code and reset the code git fetch origin git reset --hard origin/[tag/branch/commit-id usually: master] Solution 2: Delete the folder and clone again :D rm -rf [project_folder] git... Add solution
Best helpers
Andrew Lowe
+5
Catimann
+5
Thruston
+5
Tralston
+5
Silver Rain
+5
Mahnaz
+5
JohnDoe
+5
Akiman Barwa
+5
PixelZerg
+5
Jeff Ava
+5