gbck icon indicating copy to clipboard operation
gbck copied to clipboard

restoring from gbck

Open ika-musuko opened this issue 6 years ago • 2 comments

this tool is so good i love it

let's say i have a new machine or something and i want to restore my files. of course i could just clone my original repo but does gbck support restoring the files to their correct locations from the config file? and if so how does it work?

ika-musuko avatar Dec 01 '18 10:12 ika-musuko

Hi @ika-musuko,

thank you for such a lovely feedback! I have to admit I'm not reinstalling the computer that often, BUT I totally understand your needs. The situation right now is that it's not possible 😔. But it should be pretty doable 💪. I would suggest a new command --restore (-r).

Example:

gbck --restore <repository>

First, this would ask you for a name for the project.

Next, it would restore only files (not commands' stdouts). If the file will exist it'd ask you if you want to overwrite it or now.

However, this will be possible just for projects with gbck settings versioned as well.

Does it make a sense? 👍

jukben avatar Dec 02 '18 09:12 jukben

yeah i like that syntax! and yeah that's how i envisioned this new flag working. i especially think prompting for overwrite is a good idea lol

ika-musuko avatar Dec 02 '18 23:12 ika-musuko