Click here to Skip to main content
15,887,485 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Is there a white paper explaining why Team Foundation Version Control sucks ? Pin
PIEBALDconsult2-Nov-23 7:10
mvePIEBALDconsult2-Nov-23 7:10 
GeneralRe: Is there a white paper explaining why Team Foundation Version Control sucks ? Pin
Jeremy Falcon2-Nov-23 7:40
professionalJeremy Falcon2-Nov-23 7:40 
GeneralRe: Is there a white paper explaining why Team Foundation Version Control sucks ? Pin
PIEBALDconsult6-Nov-23 5:02
mvePIEBALDconsult6-Nov-23 5:02 
GeneralRe: Is there a white paper explaining why Team Foundation Version Control sucks ? Pin
Jeremy Falcon2-Nov-23 7:41
professionalJeremy Falcon2-Nov-23 7:41 
GeneralRe: Is there a white paper explaining why Team Foundation Version Control sucks ? Pin
Ravi Bhavnani3-Nov-23 5:59
professionalRavi Bhavnani3-Nov-23 5:59 
GeneralRe: Is there a white paper explaining why Team Foundation Version Control sucks ? Pin
Jeremy Falcon3-Nov-23 6:56
professionalJeremy Falcon3-Nov-23 6:56 
GeneralRe: Is there a white paper explaining why Team Foundation Version Control sucks ? Pin
Ravi Bhavnani4-Nov-23 10:54
professionalRavi Bhavnani4-Nov-23 10:54 
GeneralRe: Is there a white paper explaining why Team Foundation Version Control sucks ? Pin
Jeremy Falcon6-Nov-23 3:21
professionalJeremy Falcon6-Nov-23 3:21 
You're doing it exactly the way you should, including deleting temporary work branches. And, I can 100% see why you'd want to have local configs shared somewhere. The question is where? Should that be in the repo? From a security perspective some will say, never put connection info anywhere in a repo / where it's not needed, and I personally fall into that camp. Especially because git will never forget changes and booboos happen. But then, life happens too. Laugh | :laugh:

So, given that, you got a couple options:
  1. You can still push a stash remotely, but it's a pain compared to other SCMs. But if you want ideas, scroll down until you see Scott Weldon's answer. You can totally work with detached heads and commits in git, as long as you remember the short SHA, where git puts stuff, etc. Of course, this is a pain to do. But if you're just looking to backup/share something every now and again, it may be worth it.
  2. If the structure of that file is the most important thing (so you can remember what settings you need), you can always create a template settings file that contains everything but the actual connection values and put that into the repo permanently. This is what I do, using something like dotenv (been the web world lately). But, there will be a template file that shows everything that needs to go in the actual config that gets committed while the real values are saved elsewhere. This way you can share the how but not the what.
I guess at the end of the day, the difference is, for connection info, I'll put that in Confluence or something if it needs to be shared. Both ideas of keeping it in the shared repo (all in one place) and keeping out out of the shared repo (security) have merit ya know.
Jeremy Falcon

GeneralRe: Is there a white paper explaining why Team Foundation Version Control sucks ? Pin
Ravi Bhavnani6-Nov-23 12:48
professionalRavi Bhavnani6-Nov-23 12:48 
GeneralRe: Is there a white paper explaining why Team Foundation Version Control sucks ? Pin
Jeremy Falcon7-Nov-23 4:35
professionalJeremy Falcon7-Nov-23 4:35 
GeneralRe: Is there a white paper explaining why Team Foundation Version Control sucks ? Pin
Marc Clifton1-Nov-23 5:37
mvaMarc Clifton1-Nov-23 5:37 
GeneralRe: Is there a white paper explaining why Team Foundation Version Control sucks ? Pin
Jeremy Falcon1-Nov-23 7:02
professionalJeremy Falcon1-Nov-23 7:02 
GeneralRe: Is there a white paper explaining why Team Foundation Version Control sucks ? Pin
MSBassSinger1-Nov-23 7:35
professionalMSBassSinger1-Nov-23 7:35 
GeneralRe: Is there a white paper explaining why Team Foundation Version Control sucks ? Pin
Sander Rossel1-Nov-23 21:17
professionalSander Rossel1-Nov-23 21:17 
GeneralRe: Is there a white paper explaining why Team Foundation Version Control sucks ? Pin
Jeremy Falcon2-Nov-23 4:10
professionalJeremy Falcon2-Nov-23 4:10 
GeneralRe: Is there a white paper explaining why Team Foundation Version Control sucks ? Pin
haughtonomous2-Nov-23 0:34
haughtonomous2-Nov-23 0:34 
GeneralRe: Is there a white paper explaining why Team Foundation Version Control sucks ? Pin
jschell2-Nov-23 5:31
jschell2-Nov-23 5:31 
GeneralRe: Is there a white paper explaining why Team Foundation Version Control sucks ? Pin
PIEBALDconsult6-Nov-23 7:24
mvePIEBALDconsult6-Nov-23 7:24 
GeneralRe: Is there a white paper explaining why Team Foundation Version Control sucks ? Pin
Br.Bill7-Nov-23 11:51
Br.Bill7-Nov-23 11:51 
GeneralRe: Is there a white paper explaining why Team Foundation Version Control sucks ? Pin
PIEBALDconsult7-Nov-23 12:43
mvePIEBALDconsult7-Nov-23 12:43 
GeneralMe, AOMEI, Unfair Pin
C-P-User-31-Nov-23 3:11
C-P-User-31-Nov-23 3:11 
GeneralRe: Me, AOMEI, Unfair Pin
dandy721-Nov-23 4:06
dandy721-Nov-23 4:06 
GeneralRe: Me, AOMEI, Unfair Pin
C-P-User-31-Nov-23 5:58
C-P-User-31-Nov-23 5:58 
GeneralRe: Me, AOMEI, Unfair Pin
dandy721-Nov-23 6:27
dandy721-Nov-23 6:27 
GeneralRe: Me, AOMEI, Unfair Pin
Peter Adam1-Nov-23 22:57
professionalPeter Adam1-Nov-23 22:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.