While checkout to master branch, I got:

Error: The following untracked working tree files would be overwritten by 
checkout:
nbproject/private/config.properties
nbproject/private/private.properties
nbproject/private/private.xml
nbproject/project.properties
nbproject/project.xml 

Please move or remove them before you can switch branches.  

Aborting

 So I have remove them (I've backup those files somewhere else outside the 
repo), and I was able to switch again.

The reason I've getting this it's because:

dev is ignoring those files. master isn't, because no .gitignore file is 
present there. Perhaps, when I was setting branches, I forgot it somehow...

They should both ignore those files.

Plus, when I push this to remote repos, those changes should be propagated 
for those remote repos as well. (I'm using a bare repo).


My question is:

*How can we add that .gitignore file to the master, so that this doesn't 
happen again ?*


**


**

Thanks in advance,*
*

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/git-users/-/eTgH8yge1ewJ.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.

Reply via email to