Preserve linux group on directory

$ chgrp Groupname DirectoryName      # Change group of folder
$ chmod g+s DirectoryName            # Set group id of folder - this will preserve group of created files
$ echo umask 0002 >> ~/.bashrc       # Set default mask of created files (every user needs to do this one)
 
# After next login, check umask
$ umask                              # Display umask
0002
$ umask -S                           # display current value symbolically
u=rwx,g=rwx,o=rx