想通過部署tp5框架到linux服務(wù)器上,但是git add的時(shí)候發(fā)現(xiàn)只有24個(gè)文件,當(dāng)下文件夾里用ll可以看到有40個(gè)文件,問為什么會(huì)少文件呢?
還有一個(gè)問題就是git的hooks,添加了post-receipt,里面寫的是
#!/bin/sh
#
# An example hook script for the "post-receive" event.
#
# The "post-receive" script is run after receive-pack has accepted a pack
# and the repository has been updated. It is passed arguments in through
# stdin in the form
# <oldrev> <newrev> <refname>
# For example:
# aa453216d1b3e49e7f6f98441fa56946ddcd6a20 68f7abf4e6f922807889f52bc043ecd31b79f814 refs/heads/master
#
# see contrib/hooks/ for a sample, or uncomment the next line and
# rename the file to "post-receive".
#. /usr/share/git-core/contrib/hooks/post-receive-email
cd /wwwroot/www/項(xiàng)目文件夾 #打開項(xiàng)目目錄
env -i git reset --hard #在目標(biāo)文件夾中執(zhí)行,更新到最新版本庫中文件
=========結(jié)束符=========
為什么提交的時(shí)候不會(huì)更新呢?昨天寫的還是可以更新的。已經(jīng)添加了X執(zhí)行,文件用戶也設(shè)置成了git
- 1 回答
- 0 關(guān)注
- 562 瀏覽
添加回答
舉報(bào)
0/150
提交
取消