What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2022-03-16 08:35:03
add a file to git
/* go to the folder, open the terminal and type this commands */ git init git add . /* . => it is to add all the files */ git commit -m "first_commit" git remote add origin https://github.com/yourusername/your-repo-name.git... Add solution -
Shell/Bash 2021-11-15 20:43:24
checkout master with previous commit
git checkout 307a5cd # check out the commit that you want to reset to git checkout -b fixy # create a branch named fixy to do the work git merge -s ours master # merge master's history without changing any files git checkout master ... Add solution
Best helpers
Zack Marotta
+5
Key_asdfg
+5
Hi-yi
+5
Zhak Maarli
+5
Nitesh
+5
Miky
+5
Moji Moji
+5
Steve Bowman
+5
Sunrise Moon
+5