I’ve done a bunch of coding in my IDE but up to now I’ve never committed anything. I am now trying to commit but have some questions.
I have GitHub integration on and have set up my fork, etc. When I come to commit my code I can’t figure out how to send to the right repository as so many use the same name (thanks to the ST doc for that). Here’s my point. I have the following set up in integration:
I thought perhaps things were in the same order as the settings list (as they are when you ‘update from repo’) but it seems not as I tried a commit yesterday and I’m pretty sure it went to the wrong place! How on earth do I commit to my repository?
At this point, all I want to do is put code I have in my IDE in to GitHub so I can share that with everyone. Is it really as crude as copying and pasting from your IDE to a file then uploading that file manually to your own GitHub?
I know it has to be easier than I’m making this. I just can’t find clear information on what the steps are. Right now I have a modified handler in my IDE that I’d like to share. I can’t simply paste the code in to a post as it’s too big. How do I share this using GitHub?
Okay, I believe I have done all of this but the one part I’m having trouble with is in bold. I actually managed to do this previously but I ended up sending it to the wrong repository as I can’t tell from the list given which is mine. That was what I was trying to show in my first post - how do I know which is mine in the list of repositories shown after hitting ‘commit’ when several have the same name.
And when I hit commit I get this list which is all the repositories I’m connected to as well as mine. As happens, there are many with the same name. My issue is how do I know which one to choose? It’s this step I am trying to figure out. I tried the first in the list that matched my name and it got committed to someone else’s repo.
That’s why I was suggesting you to use your own repository so you don’t have ambiguity.
Now one thing I am surprised is that you would work on the Master branch of SmartThingsPublic. I would expect you are on your own branch.
Maybe I am missing something here but if several owners touched the same code, by having so many ST(Master) references, you will end-up in a mess when you refresh your code: how to know which one you have to use.
So basically you’ve figured out that ST’s implementation of the “Update from repo” list is terrible. None of us can change it. What Philippe is trying to convey is that you can influence how your github entry shows up by doing one, two, or both of the following:
Change your github repository name to something other than SmartThingsPublic to something that’s unique
Change your branch to something that’s unique
Once you change either or both you’ll need to update your entry in the repository list. Then your repository will be easily visible (depending on the uniqueness of the names you changed them to)…
Also complain to ST that the feature is difficult to use in it’s current state. Honestly this should be easily fixable for them by just including the repository owner’s name in the list when clicking “Update from repo”.
I don’t know how @ady624 does it but everything he puts out, has its own name and makes it a piece of cake to update from repo. Wish they were all like that, then I wouldn’t have to try 5 different ones before I find the correct one.
I have become so pissed at the way update from repo shows, that I have resorted to printing out a screen shot and numbering them. Still have to open update and count down to the one I want. Would be nice if the format was numbered.
As are mine for doing an ‘Update from Repo’ but they are not in order when doing a ‘Commit’ thus the primary reason for me starting this thread. Once I uniquely named my repo then the lack of order issue was no longer a problem.