I downloaded an android source code from the Internet. There is a patch that needs to be entered, and git needs to be used.
The source code has not established a git warehouse, and it cannot be executed using git apply or git am.
Now I am using the following command in the source code root directory. Will it cause any problems?
git add .
git commit -am "commit all files"
Create local warehouse and directory in this way. Then use
git am*.patch to enter the patch.
You need to
git init
to initialize the warehouse first, and then commit.If you just want to import patch, you don’t have to go through git. You can also use the
patch
command to import.