Pause development on one branch to switch to another

I am working on a branch with a feature. I am not ready to commit it though. I need to work on a new feature and push it to main before current one is ready. Is this possible to switch branches or commit certain files only?