Andrew-Colman / sync-fork

the quickest way to sync your fork: npx sync-fork
MIT License
15 stars 4 forks source link

resolve conflicts "automatically" #12

Closed Andrew-Colman closed 3 years ago

Andrew-Colman commented 3 years ago

--reset (reset the fork to be identical to current remote )

FarazzShaikh commented 3 years ago

I'll give this a shot. Also what do you mean by --force? Also do you mean to reset all changes with --reset?

Andrew-Colman commented 3 years ago

I'll give this a shot. Also what do you mean by --force?

Apply both changes (local files and remote files) (but not recommended)

============current
const js = true;
=================
const js = false;
=============master
const js = true;
const js = false;

maybe something from https://git-scm.com/docs/git-rebase ?


Also do you mean to reset all changes with --reset?

like the project was just forked and cloned, basically reset

maybe this command https://git-scm.com/docs/git-reset git reset --hard <upstream>

FarazzShaikh commented 3 years ago

Apply both changes (local files and remote files) (but not recommended)

Won't this cause a ton of errors?

I'll get started with -upcoming and -local, it'll just be the -theirs and -ours options in git merge -X [theirs/ours] <branch>. And of course -reset

Andrew-Colman commented 3 years ago

Won't this cause a ton of errors?

yeah, It's not a good idea,

I'll get started with -upcoming and -local, it'll just be the -theirs and -ours options in git merge -X [theirs/ours] . And of course -reset

for the simplicity and purpose of the package this will work

FarazzShaikh commented 3 years ago

Closed by #16