Rajana Deepak
Rajana Deepak

Reputation: 1392

Notification to commit/push upon code change

I have a bunch of team-mates, who change their code in their respective code editiors but often forget to commit and push through Git. Is there anyway to send notifications to them upon code change, inorder to notify them to commit and push via Git.

We use Gitlab and Sourcetree as GUI client for Git.

Upvotes: 2

Views: 739

Answers (1)

VonC
VonC

Reputation: 1323363

IDE have status bar showing what is not pushed... but that can be ignored.

Your idea was suggested for IntelliJ IDEA: IDEA-151612, but is still pending.

Message about outgoing not pushed commits

It would be a great feature if I could have an option in settings to enable warning when I close IDE, if I have some not pushed code in my current local GIT repo.

Beside IDE plugins, since SourceTree alone would not offer this feature, you would need to implement a process running at regular interval, "nagging" the user for committing and pushing(!).


The alternative is to code in a web-IDE provided by the Git repository hosting server itself.

GitLab just proposed such an IDE in "Meet the GitLab Web IDE":

The original idea came from staff developer Jacob Schatz, who observed how non-developers were having a hard time editing multiple files and getting those changes committed.

It took some time, but it was clear that we were aiming for a real integrated development experience, accessible for everyone right within the GitLab UI, without anything to install. The idea grew from the "Repo editor" into that of the "Web IDE."

See issue 44846: it includes a "Commit mode", and a "Commit overview at bottom sidebar"

https://gitlab.com/gitlab-org/gitlab-ce/uploads/0c78c2c19b30af8d49370f0f65c0778a/view1_copy_15.png

Upvotes: 2

Related Questions