snu-sf-class / pl2015spring

SNU 4190.310, 2015 Spring
11 stars 6 forks source link

On merging #44

Closed Parkdaeyoung closed 9 years ago

Parkdaeyoung commented 9 years ago

Hello. I have question about git 'fetch and merge'. Whenever I try to execute the fetch script you loaded and pull a new assignment, it changes my files, specifically, the last assignment. I think the 'merge' command has something to do with it. Is there any way to keep local files unmodified after pulling a new assignment? Is there no problem with that but me? I want to know what I am missing. Expecting an insight on it, Thanks.

jeehoonkang commented 9 years ago

Jeehoon

ksami commented 9 years ago

The git command git merge -s ours favours commits made by, in this case, students. Perhaps this could be added into the fetch homework script instead?

Source: http://git-scm.com/docs/git-merge

jeehoonkang commented 9 years ago

@ksami I am not sure that is a good idea, in our purposes. For many cases, it would be more reasonable to favor official commits than students' commits. I would like to let students to choose how to merge in these cases on their own.

Jeehoon

ksami commented 9 years ago

That's true. I just think it might be difficult for those new to git to understand merging.

Parkdaeyoung commented 9 years ago

It's very complicated for me but I can see your point. thanks a lot!