简体   繁体   中英

Can we export local commits from GIT repository and import them on another system

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM