As I have to push code to remote repository, but my VPN is not working(not able to push). So, is there any way to export local commits from my system's repository and import them on any other system(where VPN is working)? So that I can push my code to remote.
Asked
Active
Viewed 449 times
1
-
3Make a patch (or multiple ones) and send by mail. – Romain Valeri Apr 08 '20 at 07:25
-
Or just run git daemon locally and clone the entire repository on the other machine. – Arkadiusz Drabczyk Apr 08 '20 at 07:27
-
@RomainValeri can you please share any good post regarding using patches in GIT. – TS Kahlon Apr 08 '20 at 07:49
-
Does this answer your question? [How can I export Git change sets from one repository to another via sneaker net (external files)?](https://stackoverflow.com/questions/49101425/how-can-i-export-git-change-sets-from-one-repository-to-another-via-sneaker-net) – phd Apr 08 '20 at 09:32
1 Answers
1
You can, for instance, copy your repository to an USB stick and paste it on the other computer.
As long as you copy the entire repository (with its .git directory containing all information related to git) you will have exactly the same things on the new computer

Simon
- 6,025
- 7
- 46
- 98