I have 2 computers, one in office and one in home, we use git for version control, and I want to use it to sync my works, which usually are not even ready for a small commit, so I don't want leave a commit message in our gitlab server. The first idea come to my mind is git stash, can I git stash
my current work? And push the stash to the remote server. Then pull the git stash in another computer and restore the work by git pop. Something like:
This is not exactly steps, but you can get my idea.
Step 1: In Computer-Office
git stash
git push (the stash contents)
Step 2: In Computer-Home
git pull # pull the stash contents
git stash pop # pop the difference I already git stash in the Computer-office
# some modified, new files and delete some files.
git stash
git push (the stash contents)
Step 3: In Computer-Office
git pull # pull new stash content at home
git commit # the final commit