Reputation: 1197
I have a remote server on which I run a number of scripts. I just run my scripts on that server, and do my editing and saving and pushing to bitbucket cloud as my origin repository from other locations.
How do I automate the "git pull origin" command for that windows server. This isnt about running a command or script in the Task Scheduler, but more like I have to manually comment everytime when I do a "git pull origin".
I just wish to run "git pull origin" to make sure my scripts are up to date on the server in the morning before running.
But I am having trouble doing it without being forced to manually enter a message or other manual behavior.
Maybe do I have a setting wrong?
Upvotes: 1
Views: 663
Reputation: 1328122
I think for this you use git pull origin --rebase right
No: weather you are doing a merge (pull) or a rebase (pull --rebase), any concurrent modification on the same set of files would potentially involve conflicts, to be resolved manually.
If you see the same conflict over and over again, do consider git rerere
, that I detail here.
That, or maintain a separate clone of the repo, in which you make no modification, and can do a git pull
without ever having to enter any comment.
Upvotes: 1