Tag:phplinuxgit
Article From:https://segmentfault.com/q/1010000012149074
Question:

If you want to deploy the TP5 framework to the Linux server, but when git add has found only 24 files, the current folder can see 40 files with LL, and why are there fewer files?

Another problem is git’s hooks, which is added post-receipt, which is written in

#!/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/Project folder opens the project directoryEnv -i git reset --hard is executed in the target folder and updated to the latest version library.That = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =

Why doesn’t it be updated when it is submitted? It can be updated yesterday. X has been added and the file user has been set to GIT.

Answer 0:

Look at the root..gitignoreDo you want to ignore the files and directories you want to upload in the file?

Similar Posts:

Leave a Reply

Your email address will not be published. Required fields are marked *