This is a question about a best practice. It's probably simple but I'm still fairly new with Git, and I'd like to get good habits for things I do frequently.
The situation is the following. I have two computers CompA and CompB, and a remote repository (on Bitbucket). Let's say I work on a unique branch.
I need to make a big change on a file. I start from Computer A, but I do not have time to finish, and will need to carry on my work on Computer B. I'd like to make available to Computer B the changes already made on Computer A.
I usually do it by committing the changes as they are, pushing to remote repo, then pulling them to Computer B. However, this creates a commit which is not a full self-sufficient set of changes.
If possible I would like to have only one commit with the final set of changes. At least in the remote repo, if possible, also in the local repos of computers A and B.
What is the cleanest way to do this?