jupyterlab / jupyterlab-git

A Git extension for JupyterLab
BSD 3-Clause "New" or "Revised" License
1.45k stars 313 forks source link

Auto Git commit at pre set time periods #1008

Open stromal opened 3 years ago

stromal commented 3 years ago

Automaticly commit git on a pre set time period. Automaticly push the git at pre set time periods. So if anything happens with that local repository we can be sure that there is a backup of the changes.

fcollonval commented 3 years ago

Hey @stromal thanks for the proposal.

This is quite tricky as a user may have multiple git repositories available. But only the one currently displayed by the filebrowser is the active one. The other difficulties are:

stromal commented 3 years ago

@fcollonval : ANSWERS:

1.)What should be the commit messages for those auto commit? SUMMARY: set up a field that would be a reoccurring name plus something that an give it date or just a increasing integer. Description: collection of last couple of function implemented + at what chapter = ex.:" ## 3.2 ML Integration(xgboost)"

2.)What to do if the local branch is behind the remote branch? To simplify for the 1st time it could just built a local branch than when you push it online you could decide where to fit it in.

3.) Should we keep auto committing? It could also just a be a toggle for the user to decide

4.) What do to with the failing pushes? Simple leave an error message and keep building the local branch