[英]Can not push changes from local master branch to remote master branch
I am trying to use git push herocu master but what all i am getting is ![remote rejected] master->master (pre-receive hook declined)我正在尝试使用 git push herocu master 但我得到的只是 ![remote rejected] master->master (pre-receive hook declined)
error: failed to push some refs to ' https://git.heroku.com/dncollector.git ' I also tried git pull herocu master but it also shows a fatal like couldnt find remote ref master .错误:未能将一些参考推送到 ' https://git.heroku.com/dncollector.git ' 我也尝试了 git pull herocu master但它也显示了一个致命的问题,如couldnt find remote ref master 。 Why is this happening?为什么会这样?
I am working on windows.我正在研究 windows。
I pushed the code to remote origin.我将代码推送到远程源。 You can try and follow those command.您可以尝试遵循这些命令。 Please make sure you had created one resposity.请确保您已经创建了一个 resposity。
1. git config --global user.name "yourname"
2. git config --global user.email "youeremail"
3. git init
4. git remote add origin git@gitlab.com:***.git
5. git push -u origin --all
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.