On Tuesday, 30 September 2014 20:20:06 UTC+2, Jawahar Babu wrote:
> Hello everyone,
> I'm new to this group and to GIT as well. 
> I want to prevent developers from pushing build related files to the 
> central server. Sometimes, the developers accidentally make changes to some 
> the build script and push it to the central server which makes the build to 
> fail.
> So I want to stop the developers from either committing or pushing the 
> build related files.I have a bunch of build related files in different 
> directories.
> Thanks in advance.
> Regards,
> Jawahar

That's exactly what *.gitignore* files are made for. Create a *.gitignore* 
file in your repository's root and add patterns to it (have a look at the 
reference <http://git-scm.com/docs/gitignore> for infos on how to specify 
patterns): git will then ignore any file matching any of the patterns. To 
share that file with the other developers working on that repo, just add it 
and commit it.

Note that it'll work only with the not-already-committed files, so you'll 
have to untrack/remove any of the build files that are already committed to 
ignore them.

You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to