André Luís
André Luís

Reputation: 141

Curl and wget not getting the latest committed file from GitHub

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

Answers (1)

Mohana Rao
Mohana Rao

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

Related Questions