I have searched but I haven't found the solution. Maybe I wasn't persistent enough in my research. If I've missed something, I'd be grateful if you send some links.
I have worked with some guy on the same project. He has a project folder with git repository on his machine.
I have copied the last version of his working directory but without his .git on my computer one week ago.
I've installed my own git and I've made already several commits (only one master brunch, easy as it is, just to compare and control the changes/versions in Sublime Text). He doesn't work here anymore and he has not committed the changes, but I can do this from his working machine.
The problem is: now I need to add his git to my but as another branch (old-branch).
Therefore two questions:
- How can I make a commit on his computer with an old date (one week ago).
- How can I add this commit/commits/all data in his .git repository to my .git repository but as another branch, an old one.
A precision: these two folders on his computer and mine are absolutely the same, I just want to add all his changes to my git (not only the last commit I make, but old commits he made before also), but not to mix them with my changes I've made. I suppose to add this as an old-branch etc. But maybe you know a better solution.
Thank you in advance for your help!