When I bring new fish home, I float the bag on the top of the aquarium to acclimate the fish to the temperature in the tank. I leave it in there for about fifteen minutes before adding about half a cup of my tank water into the bag, repeat 2-3 times if necessary.
I then net the fish and place them in the net in the tank, allowing them to swim out when they please - it's better to have a larger net in order for them to get less stuck, stressed and confused while inside it. I don't add the water in the bag where the fish came from, it could be infected with disease, or the water levels could be off!