M
M
Maxim Ivanov2016-03-10 10:45:56
git
Maxim Ivanov, 2016-03-10 10:45:56

How to automate GIT?

Hello, tell me how you can make sure that all changes in the local repository are immediately sent directly to the github, so that you do not have to go to the console and enter again:
git add . && git commit -m "update" && git push
Is there some kind of watch command that all css preprocessors have, for example, when you change and save a file, and pure css is immediately created (and you don't have to go to the console) ?
It’s just that changes are made in different folders of the project, and I want the entire project to be immediately updated on the github, it bothers me every time to climb into the terminal, because there are many plugins, I think all editors, for example. Tell me in which direction to look for information? Thank you.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Alexander Wolf, 2016-03-10
@splincodewd

Just throw away git, you don't need it.
But seriously, this is the beauty of versioning: to have some kind of project state. It is not necessary to send it after each change. Made a feature - sent. Made - sent.
PS: here is the command for you:

while [ "1" = "1" ]; do git commit -a -m "update" && git push; done

T
TyzhSysAdmin, 2016-03-10
@POS_troi

In my memory, there didn’t seem to be a more perverted desire towards GIT :)

A
aol-nnov, 2016-03-10
@aol-nnov

it is necessary to rebuild the git with one library - libastral.so
but its maintainers have been drinking for two centuries and do not update it.
in general, you will be tired of collecting. better write git add by hand. && git commit -m "update" && git push

K
keslo, 2016-03-10
@keslo

It’s just that changes are made in different project folders, and I want the entire project to be immediately updated on github

If my memory serves me, then git catches all the changes in the initialized local repository and sends the changes in a batch to the project. If not right, then correct me.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question