23
submitted 4 days ago by [email protected] to c/[email protected]

So, this is my situation: I've forked this repository which contains dotfile and script for hyprland. I changed some files and now, if I want to sync all the commits made on the original repository to my repository github says "This branch has conflicts that must be resolved". My question is: can I merge only the commits that don't conflict with my files? What else can I do?

you are viewing a single comment's thread
view the rest of the comments
[-] [email protected] 14 points 4 days ago* (last edited 4 days ago)

You pull the origin to your fork and solve the conflicts one by one, that's usually how it goes.

If you want to keep your files how they are you can select "accept local changes" instead of "accept incoming changes". That's it.

Edit: If you need something more detailed let me know, I am assuming you are using an IDE like VSCode

[-] [email protected] 2 points 2 days ago

Thanks, I was able to do exactly what I wanted.

[-] [email protected] 1 points 1 day ago

Just make sure things are working while doing this. Maybe accepting your changes and the incoming changes is the correct way, but you need to know what you are doing.

this post was submitted on 26 Jun 2024
23 points (96.0% liked)

Linux

45417 readers
1365 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS