hexo-deployer-git
hexo-deployer-git copied to clipboard
In order to synchornize the commit history with more than a working computer, add the pull() function in lib/deployer.js
add the pull() funciton , the commited history will be not overwriten by different computers with the same project
Coverage decreased (-10.3%) to 77.011% when pulling e0735a11f283c8c4041d1efd0b0da3d2ba8ecab3 on CodingJoker:master into 498f637d36720bafb2fcc8edcb45ea4b380ecf33 on hexojs:master.
Please update the test at the same time.
Sorry, I will not merge this pull request. The best practice for synchronizing Hexo workspaces across multiple computers is to version control all the Hexo source code via git and to build your site through CI methods (e.g., via GitHub Actions). Executing git pull by this plugin might mislead users into thinking that modifications they made to the site through other ways will be preserved, but in reality, they will not. For example, a CNAME file created by the user on the GitHub webpage through setting up a custom domain might lead the user to believe that this plugin executing git pull beforehand will preserve these files, but in actuality, these modifications will still be overwritten by Hexo.