Hacker News new | ask | show | jobs
by jfcnotagain 1241 days ago
You can push to a folder too. So you can just do the same thing. Clone the remote into a folder and push into it.
1 comments

Was gonna suggest the same! I use this countless of times. It's really cool how you can push/pull to a bunch of different things, including directories, ssh hosts, anything that can act as a directory (network mounted FUSE directories) and more.

Personally I use it a lot for backing up git repositories to a USB stick where I have a backup of every single repository + its branches and commits in case I ever need to recover from them. And I can keep my GitHub remotes clean without 100s of branches.