How can I pull a specific commit, or rather pull the repo the way it was after a specific commit? I don't have any branches. I'm just running master, and I am the only one using this repo.
You can pull an then checkout the commit you want to see:
git pull && git co <commit>
or you can pull and then reset HEAD to a different commit:
git pull && git reset --hard <commit>
I do not think there is a way to pull only a specific commit since it is easy it git to switch to another commit if needed.
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.