Automatic Commit and Push to GitHub from Android S

2020-03-06 18:22发布

I have been working in Android Studio for more than 2 years. I used to create a repository in GitHub and commit files manually using the built in VCS in Android Studio. But I need to know if the commit and push process can be automatically done every 5 or 10 minutes after establishing the initial commit. I have researched and was clueless on this issue. If there is any way or a plugin to do this, it would be great.

1条回答
▲ chillily
2楼-- · 2020-03-06 18:45

There is not such feature for git and android studio (or plugin) themselves.

And if you really need this feature, you can use your own script and schedule to run the script on your local machine.

For example, you can use a shell script to commit and push changes:

#!/bin/bash

git add .
git commit -m 'message'
git push

And then auto run the script as these methods show:

schedule running a bash shell script in windows

Running .sh every 5 minutes

查看更多
登录 后发表回答