'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.
Solution 1:[1]
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 [email protected]:***.git
5. git push -u origin --all
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |
