My usage of git is very simple. Basically I do smth like this on my local machine:
echo 'Update' >> README.md
git add . && git commit -m 'update' && git push -u origin master
Then on server:
git pull
That's it.
And I am doing it every time I make changes on my local machine. Seems to me I can optimize this somehow, but I haven't found any git command to deal with this.
Is there a way not to print git pull
every time there is a change?
And maybe there is a way to automatically add && commit && push
?