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-10-18 13:36:07
how to compress all branches on branch into one branch back to the master
git checkout yourBranch git reset $(git merge-base master yourBranch) git add -A git commit -m "one commit on yourBranch" This isn't perfect as it implies you know from which branch "yourBranch" is coming from. Note: finding that o... 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