Just add the branch that the work is being done in, if You are collaborating. If
You just want to read updates then add the master branch.
I wish I could explain all the intricacies of GIT in a forum post. The best thing I can do here are answer your questions. No one is purposefully hiding information from you lol. GIT is a complex beast. It’s a powerful tool, but it can be hard for anyone to grasp, even seasoned devs.
I would recommend the following resources to help learn the ins and outs of GIT:
if you fork a repo that has a branch the branch comes with it. If you already forked the repo, and a branch is added after, you will need to pull the branch to the repo using command line.
Thanks for the links…Although I’m not a complete noob with git, this forced structure and lack of an example made it more difficult for me to get the workflow.
In the past, I fork someones code, work on it, issue pull request, done. Here there’s more of a complication. I guess I’ve just always been involved in simpler setups.
Thanks for the help - I think I got the workflow now
I guess the (rhetorical) question should be, "Why didnt the devs set it up this way from the beginning, so their ST customers could easily get notified of the updates, outside of returning to this forum.
For officially published devicetypes/SmartApps, the code resides in the cloud so you never have to update anything. When ST makes an update, it’s live for everyone. When they update a local devicetype/smartapp, they currently have to push a firmware update to v2 users to update it locally though. - You can pull the code from their repo to use as templates or to modify and customize it, but you don’t need to.
For non-published developers on here, the GitHub integration is relatively new. Many of them/us already had Github organization methods and/or don’t push updates quite as often, so reorganizing isn’t worth the effort. Maybe I’m just lazy because I haven’t done it for the stuff I put together…
Chalk it up to maturation of the process! At least most people do provide a GitHub link now instead of posting updated code throughout a thread, so you never know where to find the latest stuff. This place was the wild west in '13-'14!
Can anybody shed a little light for me? I just started a GitHub account and really new to this. The SmartThings Documentation says in Step 5 to configure to Sync Fork with SmartThings to get upstream changes from the original SmartThings repository. When I try to do these steps I am getting an error in Windows 10 in the CMD window saying “git” is not recognized as an internal or external command. What am I overlooking?
tgauchat
(ActionTiles.com co-founder Terry @ActionTiles; GitHub: @cosmicpuppy)
31
You probably need a git client for Windows (though you don’t need it if all you are doing is pulling the latest version of shared code and don’t intended to make your own updates to push back to the Repo).
If you still want to run Git for Windows, I highly recommend the free GUI called “SourceTree” (it includes a Git command line window for times that you need it … rarely). Unless you much prefer command-line-interfaces, SourceTree as a GUI is much easier to use.
@r4nd0m Here is how I did it. After logging into your IDE account click the “My Smart Apps” in the menu. Then in the upper right of apps page you will see the Enable GitHub Integration button for starting the integration.
After I enabled GitHub this screen changes to a different look the next time you click the “My Smart Apps” where now it shows some new buttons of Commit Changes, Update from Repo, Settings. Click this new Settings to add the new repository fo Owner=bravenel, Name=Rule-Trigger, Branch=master"
thanks for that mate but the options arent available … we did wonder if its not available in the UK but none of the ST community guys ever responded … see below:
Interesting, Let’s try to reach out once more @slagle@bravenel to see if they can shed some light on this for those of you in the UK not being able to see Enable GitHub
Does anyone know how to get updates from all the repos’ that I have setup in my ST IDE? Right now I have to select each one to check for an update. Is there a better way to do this?