-
Notifications
You must be signed in to change notification settings - Fork 295
Using git for the Integration Candidate Merge Process
Gerardo E. Cruz-Ortiz edited this page Sep 16, 2020
·
2 revisions
Always reset the integration-candidate before starting a new cycle:
git checkout main-
git pullPull on the main branch to confirm that your localmainmatches the remote
-
git branch -D integration-candidateDelete your local integration-candidate. BE CAREFUL -
git checkout integration-candidate. This should be in line withmain -
git loginspect thatmain,integration-candidate, ANDremote/mainare all in line -
git branch -u origin/integration-candidateThis "connects" your localintegration-candidatewith the remote on GitHub -
git statuscheck that your localintegration-candidateis connected to the remote. They have possibly have diverged. -
git pushThis will probably be rejected. You'll get an error similar to the one below
hint: Updates were rejected because a pushed branch tip is behind its remote
hint: counterpart. Check out this branch and integrate the remote changes
hint: (e.g. 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
-
git push --force, you'll get a confirmation like the one below
+ 576910b...ffb30d8 integration-candidate -> integration-candidate (forced update)
-
git checkout integration-candidate. This should be in line withmain git pull-
git rebase mainBring integration candidate up to main, -
git statuscheck that your localintegration-candidateis connected to the remote. They have possibly have diverged. -
git pushThis might be rejected. You'll get an error similar to the one below
hint: Updates were rejected because a pushed branch tip is behind its remote
hint: counterpart. Check out this branch and integrate the remote changes
hint: (e.g. 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
Latest Configuration Control Board Agenda
Notes from previous CCB Meeting
Join our Community Forum!
Contact the cFS team:
[email protected]