简体   繁体   中英

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM