I have a question about merge used by Git.

Asked 2 years ago, Updated 2 years ago, 94 views

I'm just learning Git. I am posting a question because I have a question in the merge process.

git checkout -b fetch-a

Add README.md File Content via vi Editor

git commit -m "modify readme"

git checkout master

After the above process, I understood that what I worked on the branch of 'fetch-a' did not actually affect the 'master' branch, and I also understood that running the command 'git merge --no-ff fetch-a' on the 'master' branch would merge with the 'master' branch.

Assuming that there is a Java-related source file, if it is merged, the code added from the source code in 'master' is added, and the deleted source part is automatically deleted and merged into one file?

git merge github vcs

2022-09-21 14:46

1 Answers

Yes It automatically merges under the assumption that there are no conflicts in both files.

For more information, please refer to the following link Crash-basic


2022-09-21 14:46

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.