Ok, it was an authentication issue with github. I used ssh instead of http. In case someone else run into the same here are the steps I followed.
1/
Go to the .git directory
$cd ~packages/pkg2/.git
2/ remove the orig url (it was http)
$ git remote rm origin
3/ Add ssh URL
$ git remote add origin git@github.com:abiyug/pkg2.git
4/ Update ssh
$ cat ~/.ssh/id_rsa.pub
$ ssh -T git@github.com
Hi abiyug! You've successfully authenticated, but GitHub does not provide shell access.
5/ Now to synchronize with github
$ git push -u origin master