Reputation: 255
After git cloning my heroku repository, it says I' am on master branch but for some reason I cannot push any changes to github. Usually I would just enter 'git push -u origin master', and that command would push everything to my github private repository for my website.
I recently just cloned my heroku app on my ubuntu environemt using the following command:
heroku git:clone -a ubbytech
after this i added all files, make a commit and pushed everything to my website on heroku with following command:
git push heroku master
What I'am doing wrong?
Upvotes: 0
Views: 1147
Reputation: 5434
This is usually caused by another repository pushing hint: to the same ref
If there's already some content at origin/master
different from your local version's history, force push by using the --force, -f
flag
# caution: this cannot be reverted.
git push origin master -f -u
Upvotes: 3
Reputation: 1329292
fatal: 'origin' does not appear to be a git repository
Simply add a remote origin, with the url of your private repo
cd /apth/to/local/repo
git remote add origin /url/private/repo
Upvotes: 3