Git - pulling causes deleting files -


after running 'git pull origin' against main branch, new files, committed, in branch marked deleted. have run

git reset 

and

git checkout ---. 

to recover files.

in situation, how merge main branch branch?

first, need after editing local files commit files following command:

git pull origin 

and make change of files

git add . git commit -m "text" 

then should commited pulling files remote repository following command:

git push origin 

Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -