Git hooks/Export on push
From Sidvind
Jump to:
navigation
,
search
Code:
post-update (
view
,
download
)
#!/bin/sh
# update
GIT_WORK_TREE
=
/
path
/
to
/
repo
git checkout
-f
# update http access
git update-server-info
Category
:
Git
Navigation menu
Personal tools
Create account
Log in
Namespaces
Page
Discussion
Variants
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Help
Linux
General
GRUB
Netboot
Subversion
Git
Programming
Linux tools
OpenGL
Tools
What links here
Related changes
Special pages
Printable version
Permanent link
Page information
Google AdSense