What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2021-10-01 08:30:07
not a git repository after clone
$ git clone git://cfdem.git.sourceforge.net/gitroot/cfdem/liggghts Cloning into 'liggghts'... remote: Counting objects: 3005, done. remote: Compressing objects: 100% (2141/2141), done. remote: Total 3005 (delta 1052), reused 2714 (delta 827) Receiving obj... Add solution -
Shell/Bash 2021-08-31 01:17:01
unstage previous commit
git reset --soft HEAD~1 Should do what you want. After this, you will have the first changes in the index (visible with git diff --cached), and your newest changes not staged. git status will then look like this: # On branch master # Changes to be com... Add solution
Best helpers
Arad
+5
JoshuaFicy
+5
Majte
+5
Entrepreneur
+5
Meital Regev
+5
Shenkwen
+5
Digcoal
+5
A G Davey
+5
NeuronQ
+5
Emmet
+5
Muazam
+5
Vigrond
+5
Scoiattolo
+5
Erica Price
+5