We try to use Git to control the project source files.
We can execute Git Bash for operation.
Go to directory A then initial Git management.
Notify Git we have a new file in directory need to be managed.
git add . mean add all file in directory.
git add <fileName> to add single file
Commit all changed in past operation.
git commit -am 'initial'
-a mean commit all changed files
-m 'initial' mean plus commit memo.
B need to get project A's files.
B modify the Hello.txt content to 'hello by B'.
B commits his changed file.
Then B tell A that B has done his job, A can merge the changed file now.
A get file from B.A merge new file into source file.
沒有留言:
張貼留言