Only selected changes from main file

Is it possible to accept only selected changes from main file to branch?

thanks