Overcoming git conflicts #282
-
What would be the best way of overcoming git conflicts with Any thoughts? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 12 replies
-
Hi @mikematos84 git fetch
git checkout <branch_pr_source_name> locally you can use an IDE or any text editor to fix the conflicts. After the conflicts are fixed, commit the changes and push them to the branch # pro hint: sign commits with -S option https://dev.to/andreasaugustin/git-how-and-why-to-sign-commits-35dn
git commit <-S>
git push Remark: I hope I understood the question and the proposed solution helps a bit. |
Beta Was this translation helpful? Give feedback.
-
A related question: we have the |
Beta Was this translation helpful? Give feedback.
-
I'm hijacking this question since mine is of a similar nature: I'm syncing files that need to be reverted to the targets state. First, I thought that I use fixup commits and squash them to keep the commit history small. But that would let the action believe that the template is not synced, wouldn't it? |
Beta Was this translation helpful? Give feedback.
Hi @mikematos84
one way of solving those conflicts is to pull them to a local machine
locally you can use an IDE or any text editor to fix the conflicts. After the conflicts are fixed, commit the changes and push them to the branch
Remark:
If there are issues with files you do not want to change, add them into a
.templatesyncignore
file located within the root or.github/
folder of the repository.I hope I understood the question and the proposed solution helps a bit.