简体   繁体   中英

Local machine pushes branch but no files to Remote repo

When I push from my local machine to my remote repo with git it gives no errors. It counts the objects, compresses them and says: 'master > master'. But when I check my remote repo i only see the new branch, there no new files added to the directory. When I try to switch to that branch on the remote server with 'git checkout master' it says iam not in a working tree.

Can anybody help me?

Thanks

PS: The remote repo is initalized with: 'git init'

The remote repository is most likely a bare repo and created with git init --bare.

To see the files, create a separate non bare clone of the bare repository.

To verify the changes are in, use git log

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM