Can't add new file to remote repo, says I need to pull but already did
问题 For a personal project where I'm the only one creating code, I sometimes switch between two different IDEs. As such, the source code is stored locally in two different places. I would like to have a history/backup of the code on Bitbucket. Is Git able to handle this? I have foo.cpp in the directory source_code . I do not want to copy everything from the remote repo into source_code . After adding and committing foo.cpp I try to run git push origin master and it gives the error ! [rejected]