我是git的新人,对任何版本控制系统都没有经验。我在本地开发,并且正在寻找一种比FTP更简单的方式将文件部署到(LAMP)Web服务器。当我推送更改时,我很难配置Git(版本2.5 for Windows)来自动更新其当前工作目录。这里是我做了什么,下别名origin
创建本地回购,做第一次提交,并添加远程位置后:Git receive.denyCurrentBranch updateInstead失败
- [远程]
ssh [email protected]
- [远程]
cd testgit
- [远程]
git init
- [远程]
git config receive.denyCurrentBranch updateInstead
- [远程]
git status
:没有提交 - [远程]
exit
- [本地>>主]
git status
:无添加,但未跟踪文件呈现 - [本地>>主]
git push origin master
步骤8生成一个通知和两个错误:
stdin: is not a tty
fatal: bad config value for 'receive.denycurrentbranch' in config
fatal: Could not read from remote repository
我一直在环顾四周,但我卡住了。我究竟做错了什么?
你有没有创建任何提交? – TheGeorgeous
是的,我在尝试推送之前在本地进行了第一次提交。我在OP中写过,就在步骤列表之前。 – BeetleJuice