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

skip-worktree autostash on pull

From
BCBlake Campbell <bc@mpbell.io>
Date
Sep 14, 2023, 09:54 UTC
Message-ID
<AB6A85F5-3E76-4462-931E-AD76E0066C37@mpbell.io>
Hi all - I use update-index --skip-worktree on some config files that I change locally and don’t want to commit, but every time I pull from the remote I have to go through a process of no-skip-worktree, stash, pull, stash pop, then skip-worktree again, which is all a bit tedious! Ideally some switch like --autostash for git pull would be really useful. Does anyone know if something like that exists? 

Thanks! Blake.

Next: brian m. carlson
Message 1 of 3 in “skip-worktree autostash on pull”
  1. Blake CampbellSep 14, 2023
  2. brian m. carlsonSep 14, 2023
  3. Junio C HamanoSep 14, 2023

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.