Sublime Forum

Git-related problem while publishing plugin

#1

Hi. Sorry I ran into a github problem while trying to publish a sublime plugin, I thought this forum might be the quickest source of help. (Though the problem is purely git-related, I admit.)

To publish my plugin I created a second github account with username “youlam”, using the same email as a previous github account of mine. The plugin I’m trying to create is called GranularSubword, so within github I create a new repo called GranularSubword. (You can see it here: https://github.com/youlam/GranularSubword.)

Next I go inside my Packages/GranularSubword folder to init the git repo, and…

$ git init
Initialized empty Git repository in /Users/me/Library/Application Support/Sublime Text 3/Packages/GranularSubword/.git/
$ git add README.md
$ git add GranularSubword.py
$ git add Default.sublime-keymap
$ git remote add origin https://github.com/youlam/GranularSubword.git
$ git commit -m "first commit"
[master (root-commit) d5a4c6c] first commit
3 files changed, 384 insertions(+)
create mode 100644 Default.sublime-keymap
create mode 100644 GranularSubword.py
create mode 100644 README.md
$ push -u origin master
remote: Permission to youlam/GranularSubword.git denied to XXX.

…I get the above error, where “XXX” is the username I already had on github prior to adding the “youlam” username.

Does anybody understand why my other github username is popping up here?

0 Likes

#2

In case anybody is curious or runs across this later, I solved it by running

git config --global credential.useHttpPath true

which does something or other, as per this StackOverflow post: https://stackoverflow.com/questions/43561999/cant-push-to-new-repo-in-github

2 Likes