Replies: 2 comments 1 reply
-
|
Hi,
I will check and let you know when I am available again, latest in a few days.
|
Beta Was this translation helpful? Give feedback.
-
|
@barsk I think it is worth if you check the following sites for more info on how GitHub works. The first link will show you how you can keep your cloned repository up to date from remote changes, the second one will show you how to create a pull request. Basically you need to create a fork first, then you can create a pull request to get the changes into the main repo. Before you submit your changes, please make sure that they will not break any existing functionality, e.g. with other displays, boards, or setups. Get general updates from remote after cloning: https://docs.github.com/en/get-started/using-git/getting-changes-from-a-remote-repository Creating a pull request: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I have been working with some minor changes to the code to add a Adafruit SH110X library for the SH1106 driver which 1.3" OLEDs tend to use. THe default 0.96" OLED uses an Adafruit SSD1306 library. The code changes are minor, a #define in Config_Definitions.h and some conditional code in SparkDisplayControl.h and .cpp.
However, I am a newbie to git, been using another source control system for decades though (Subversion). My main usage pattern for git has been to clone a git repo and then just build and install from there, never contributing back. And here in Visual Studio (new IDE for me) I just stumble on even how to sync in whatever contributions has been made to the main trunc. I want to sync my working code in Visual Code . Even here I don't get it. If I "pull" it asks me to "commit" to Staged. Why? I just want to download the latest changes. I could of course delete the whole project and clone from scratch, but that seems stupid. Reading the tutorial parts for source control in Viusual Studio does not relly focus on the fundamentals that seems to elude me. Especially they focus on being the owner of the official repo, not just a "user" that wants to download changes. Any hints, pointers to external instructiones etc to get me on the right path?
As the tool instructed me strongly to "commit changes" and as that seemed to be to a "local" repository I went and did that. The changes then seems to be committed to the actual source control tree, even into main! I did not anticipate that! Although looking in the official repo in github nothing has changed. Maybe because I did not "sync" yet?
As you can see, I'm a bit lost here. Did I do something wrong? How do I correctly go about downloading the changes from the latest github sources? How do I correctly go about the process of making a "pull request" with my contributed parts?
Beta Was this translation helpful? Give feedback.
All reactions