I am setting up git between two AWS instances (call them A and B). I can pull from A fine and see changes in those files on B.
If I create a new file on B and commit it, when I push from B to A, all seems to go well (I get the git message about writing objects...done) but I don't see the files on the A machine. On the A machine, git status says that those files have been deleted.
How come I never see the pushed files and why does git think they were deleted?
Roll your working directory forward on A. A push is like a fetch done backwards, not like a pull done backwards. It doesn't affect the working directory.
git checkout $YOUR_BRANCH
Do that on machine A after pushing from B.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With