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

Emphasize that assume-unchanged and skip-worktree bits are not propagated to origin with git push

From
MBMartin Bruzina <martin@bruzina.cz>
Date
Nov 20, 2021, 16:06 UTC
Message-ID
<3df2bcbd-fac2-b36d-3f50-d52e573fc803@bruzina.cz>

General overview of the idea: Reference https://git-scm.com/docs/git-update-index describes assume-unchanged and skip-worktree bits and should include clear information on whether they are propagated to remotes with git push or not.

What problem will this solve?
 From https://git-scm.com/docs/git-update-index it is unclear, how 
assume-unchanged and skip-worktree bits work in relation to remotes - if 
they are local only, or propagated to a remote as well.
 From other documentation - 
https://git-scm.com/docs/git-sparse-checkout#_sparse_checkout or 
https://git-scm.com/docs/gitfaq, it might be deducible, but it would be 
convenient to mention it in 
https://git-scm.com/docs/git-update-index#_notes as well.

Have I thought about other solutions? Use Google - it's not easy to find the fact by Google Search for the information by on-page search - https://git-scm.com/search/results?search=skip-worktree and https://git-scm.com/search/results?search=assume-unchanged top results are not helpful, but I admit that from the bottom ones it is deducible Write a blog about it - http://blog.stephan-partzsch.de/how-to-ignore-changes-in-tracked-files-with-git/ already posted the information: But no matter which option (assume-unchanged and skip-worktree bits) you choose there is one point to consider: The chosen bit will not be propagated by git push.

-- 
S pozdravem
Martin Bružina
Message 1 of 1 in “Emphasize that assume-unchanged and skip-worktree bits are not propagated to origin with git push”
  1. Martin BruzinaNov 20, 2021

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.