What do you want to save?
Add Code snippet
New code examples
-
-
-
Shell/Bash 2022-02-03 09:40:26
volver a commit anterior temporal
git checkout <id_of_the_commit> Add solution -
Other 2022-02-03 06:20:54
git commands
…or create a new repository on the command line git init git add . git commit -m "first commit" git remote add origin https://github.com/metinkaya1511/FinraDeck.git (GitHub’daki adres) git push -u origin master …push a... Add solution -
Shell/Bash 2022-02-02 23:41:55
create branch with local changes
git checkout -b new_branch_name Add solution -
TypeScript 2022-02-01 04:10:56
move commits to another branch
# Note: Any changes not committed will be lost. git branch newbranch # Create a new branch, saving the desired commits git reset --hard HEAD~3 # Move master back by 3 commits (Make sure you know how many commits you need to go back) git checkout ne... Add solution -
Other 2022-01-30 23:50:30
revert uncommitted changes to a single file
git checkout HEAD -- my-file.txt Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5