git/list[1] front-page[2] threads[3] people[4] search[5] about
 

git hooks to run something

From
ACAlf Clement <alf.clement@gmail.com>
Date
Mar 24, 2009, 10:56 UTC
Message-ID
<556d90580903240356q3a72fd0bwa5ebe335914bc469@mail.gmail.com>
Hi all,

when I switch between branches, I would like like to delete some object files and prepare some setup files. I there a good way to do this automatically when I run "git checkout branch", like misusing a hook to run a make in a special directory? All would happen in my local repository.

Thanks, Alf

Next: Jeff King
Message 1 of 3 in “git hooks to run something”
  1. Alf ClementMar 24, 2009
  2. Jeff KingMar 24, 2009
  3. Jeff KingMar 25, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.