B
B
bondle2020-06-03 11:00:29
git
bondle, 2020-06-03 11:00:29

How to restore a commit?

Command sequence:

git init
git remote add origin ...
git add .
git commit -m "..."
git checkout my_branch

After that, all files were loaded from the git, and local changes were not saved. How to return them?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Sundukov, 2020-06-03
@alekciy

git checkout master
if you have default settings. If not, what to do will tell you:
git branch -vv

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question