Reputation: 141
I'm using curl -s -o file.sh https://raw.githubusercontent.com/USER/REPO/master/file.sh
to update a script file. However, the above command won't get the latest commit right after the push. It takes a while to do so.
Is it as it's supposed to be or am I doing something wrong?
Upvotes: 0
Views: 534
Reputation: 911
I'm not sure about your use case, but it is always better to use git pull to get the latest changes. Github may do some housekeeping operations before making the new changes available at the "raw" url.
Upvotes: 3