P
P
papersaccul2020-10-11 23:44:57
GitHub
papersaccul, 2020-10-11 23:44:57

How to automatically update a github repository?

There is a folder to which the repository on github is attached.
How can I make sure that when uploading files to an attached folder, they are immediately updated in the repositories?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir, 2020-10-11
@Casufi

This is not the task of the git. Find a tool that will monitor file activity and when changing, adding, deleting files, you will have git add . git commit git push do. But why? If the files are binary, your .git will swell like crazy.
Git is a distributed revision control system that helps keep a history of changes to files in a folder.

I
index0h, 2020-10-12
@index0h

You can write a script, something like this:
Check git status if there are changes:
- git add .
- git commit -m `date`
- git push
Wait a minute
It's true that the task itself looks very strange. Why do you need this?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question