Git Commit

While I was trying to commit the code to my GitHub account I started getting a strange error. After tweaking around a while, surfing through a couple of websites, I got these steps. And these steps solved the issue.

Have a look at the error: ( If you are getting the same error, proceed to read the rest of the blog.)

blogger$ git push remote master
fatal: 'origin' does not appear to be a git repository
fatal: The remote end hung up unexpectedly

Now the fix
running the commands listed below, did the thing for me. Running this once will do for the session of the terminal.

git notes --ref=bugzilla add -m 'bug #15'
git log --show-notes=bugzilla
git log -1 --show-notes=*
export GIT_NOTES_REF=refs/notes/bugzilla
git push origin refs/notes/bugzilla
git push origin master

Now every yime you want to commit the code just run

git commit -a -m "your message"
git push origin master

Enjoy sharing your code! 🙂


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s