git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* .gitignore is not enough
@ 2023-08-03  3:23 Aleem Zaki
  2023-08-03  5:35 ` Hilco Wijbenga
  0 siblings, 1 reply; 8+ messages in thread
From: Aleem Zaki @ 2023-08-03  3:23 UTC (permalink / raw)
  To: git

There are files which one would like to pull from a remote branch but
not have git register said person's changes on said files

Let's have a file named:
.gitpullfromremotebutdonotregistermylocalchanges

Of course, we can think of a better name

By register I mean detect, like when git status detects changes that
are not staged for commit

Use case:

On GitHub, you clone a repo with a default config file (skeleton)
You custom the config file with personal tokens and values
If the config filename was in .gitpullfromremotebutdonotregistermylocalchanges
Then the following don't have to be worried about:
1. The developer (the remote branch maintainer) doesn't have to not
have a default config file (skeleton) because it was in .gitignore
2. Pushing your secrets
-- 
Anonymous

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-08-03 21:53 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-03  3:23 .gitignore is not enough Aleem Zaki
2023-08-03  5:35 ` Hilco Wijbenga
2023-08-03 17:17   ` Johannes Sixt
2023-08-03 17:49     ` Hilco Wijbenga
2023-08-03 20:27       ` Johannes Sixt
2023-08-03 21:53         ` Junio C Hamano
2023-08-03 21:38     ` brian m. carlson
2023-08-03 21:47       ` Aleem Zaki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).