2017 Nissan Sentra - Wrong fuel

I accidently put 1 gal. of diesel feul in my gas tank. Will it hurt my engin. I have full unleaded tank.

Probably not but how did you do that ?

If you live where it is very cold the engine may be hard to start and the spark plugs might foul but no engine damage should be expected.