How do I with Git: Designate a file to only update the first time.
I've found that there are times when I need to pull down a repository, but when working with other people, there's always that certain file that holds particular user-specific customizations. We need to pull it down the first time, but every time afterward, I'd prefer it not get updated - pushed or pulled.
Is there a way to do this?
EDIT: Maybe I should use a hook script to download the file once? Forgive my GIT noobishness.
This has less to do with git, and more to do with the portablility of a project. AFAIK, there is no way to not update one file (well, there might be, but it is a bit of an unusual operation).
There are a few options though:
1. Use a configure script to deal with platform/user options. This is probably the most standard way in the open source community.
2. Make it so the program first looks for customised options before using the default options file. Then nobody pushes their own customised options.
3. Keep a copy of your preferences somewhere safe. Before pushing, reset the file. After pulling, copy your version over.
I am currently creating a simulation of a pizza ordering system in object oriented program. I have some question. the instruction and guideline is long but I will try and cut it down a lot. the instruction is to create a program that simulate a pizza restaurant using ...