OpenSourceBrain / OSBv2

An updated version of the Open Source Brain platform
https://www.v2.opensourcebrain.org/
Other
12 stars 6 forks source link

Idea: Add "sync workspace with GitHub repositories" button #897

Open sanjayankur31 opened 10 months ago

sanjayankur31 commented 10 months ago

Now that we're using Git for the GitHub repositories, it's quite simple to update the files in the workspace. From the UI, of a user selects the same files/folders again, this is already done for them. But it could be also done from the workspace side of things with something like this:

The only issue I see here is that we don't track what branch a folder in the workspace was created from anywhere in the workspace---that information is only available in the repository. Before creating the new branch for the user, we could also checkout a new osbv2-orig branch that we can then use in the future---it will indicate what branch the folder was created from?

The remote is available now as origin, and we could also tweak our github-copy to rename the remote to osbv2-original or something like that just to make sure things don't fall over if the user decided to change the URL for origin to their private fork or whatever.