Resolving merge conflicts step by step
Në shqip: Zgjidhja e konflikteve hap pas hapi
ShpjegimiSQ
Kur ka konflikt, Git shënon pjesët me <<<<<<<, ======= dhe >>>>>>>. Zgjidh cilin version mban (ose bashkoji), fshi shenjat, pastaj git add dhe git commit (ose git rebase --continue). VS Code ka butona për këtë.
EnglishEN
When there's a conflict, Git marks the sections with <<<<<<<, ======= and >>>>>>>. Choose which version to keep (or combine them), delete the markers, then git add and git commit (or git rebase --continue). VS Code has buttons for this.
Si ta mendosh
Si dy versione të një eseje që i bashkon në një, duke zgjedhur fjalitë më të mira.
Lexoje në anglisht
Like two versions of an essay you merge into one, picking the best sentences.
Shembull koditext
<<<<<<< HEAD
const ngjyra = "blu";
=======
const ngjyra = "jeshile";
>>>>>>> dega-ime