简体   繁体   中英

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)

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 . Why is this happening?
I am working on windows.

I pushed the code to remote origin. You can try and follow those command. Please make sure you had created one 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

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