If I understand correctly, you have a git working directory. You copied the
contents of the directory, but not the .git subdirectory, to an external
drive. You modified some of the files on the external drive. Is there some
reason why you cannot copy those files back to the original directory,
which has the .git metadata, then do a git push?

If you are still on the road, and you need to push to the base repository,
then I would:
1) rename the subdirectory with the modified source, to move it "out of the
way".
2) do a git clone of the bare repository.
3) copy the changed (or all of) files from the renamed directory to the new
subdirectory made by the "git clone" command
4) do a "git push" back to the bare repository.




On Wed, Jan 1, 2014 at 10:09 AM, <juntandolin...@gmail.com> wrote:

> Hi.
>
> I had to travel urgently and I only have my source code backed up in my
> external drive.
>
> I have code not pushed to main repository, I only have the source code,
> not git metadata. In other words, my modified code is not under version
> control.
>
> I need to put my code again under version control, and need to be aware of
> the changes with respect of the main repository. What can I do?
>
> Thank you.
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Git for human beings" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to git-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
This is clearly another case of too many mad scientists, and not enough
hunchbacks.

Maranatha! <><
John McKown

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to