How to Upgrade to Latest commits without altering my Custom modified codes
-
@DabDab Git is the version control system. Github is a website for hosting git repositories. Github Desktop is a GUI for working with git and github - when you installed Github Desktop it also installed git.
-
@d-healey Okay. got it. I am little confused how to merge branches.
-
@DabDab I don't know the specifics of that app but the basic thing is you pull from the branch you want to get updates from, then make sure you're on the branch you want to merge into, and you do the merge.
git checkout develop git pull git checkout myBranch git merge develop
-
@d-healey Sure. But I will have to google how to do it using GitHub desktop.
-
@DabDab said in How to Upgrade to Latest commits without altering my Custom modified codes:
@d-healey Sure. But I will have to google how to do it using GitHub desktop.
Ok, but it's faster to type those 4 lines than to Google it :)
-
@DabDab Menu -> Branch -> Merge into current branch...
Dave! I got it in 3 moves! :beaming_face_with_smiling_eyes:
-
With the help of you guys @d-healey @ustk I have been able to install and use Github Desktop and Git hub successfully. As @ustk said I have been managed to do so...
- Git: create a new custom branch from original develop (so for now you have two identical branches, develop and custom)
- OS: assuming you have two Hise directories on your computer, drag and overwrite your changed files from your custom Hise folder to the main Hise folder
- Git: commit the changes in your custom branch
So in the end, you'll have the unchanged develop as well as your custom branch, so you can navigate between the two
Now my Repo HISE looks something like this... (Ignore Hise-masterRDG)
I have created a separate branch namedDabbu
Now my question is :
- How Can I get update from @Christoph-Hart repo ?
- Do I need to delete my existing local directory (lets say D:\HISE) and clone the original repo every time ?
- If I do so , will I loose my branch that I have created named
Dabbu
?
-
What does the Pending Icon mean ?
-
@DabDab said in How to Upgrade to Latest commits without altering my Custom modified codes:
- How Can I get update from @Christoph-Hart repo ?
Select the
Dabbu
branch
go to Menu -> Branch -> Merge into current branch
Selectdevelop
and confirm
This will updateDabbu
following the state ofdevelop
- Do I need to delete my existing local directory (lets say D:\HISE) and clone the original repo every time ?
No, you don't need to do any manual intervention in the folders anymore. That's the power of Git!
When you select a branch, the Hise directory instantly reflects the state of the branch- If I do so , will I loose my branch that I have created named Dabbu ?
So as above, you won't delete or change anything, otherwise there would be no point using Git
-
@ustk Awesome.