For rosbuild systems you could setup a .gitignore excluding the bin, build and other folders that appear in your package's directory after a rosmake. Looking at the setup of other projects can certainly be a good approach.