S
S
sorry_i_noob2019-08-05 17:14:29
git
sorry_i_noob, 2019-08-05 17:14:29

Is it possible not to copy the entire project to a flash drive in order to transfer it from home to work, but simply copy the .git folder?

In the git, after all, all changes are fixed? I tried it now and it seems to work. But I am not a professional in git and programming in general. I don't want that one day some problem associated with this method of transferring the project will cause bugs and loss of time.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
J
jcmvbkbc, 2019-08-05
@sorry_i_noob

Is it possible not to copy the entire project to a flash drive in order to transfer it from home to work, but simply copy the .git folder?

You can, if all the necessary files are committed.
Copy the .git to the right place and write git reset --hardto restore the working directory.

I
Ivan Shumov, 2019-08-05
@inoise

If you can do a git pull at work, then the flash drive in this story is superfluous

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question