]> git repositories - sync-works.sh.git/commitdiff
update README
authorbochard <mail@bochard.net>
Wed, 23 Jul 2025 12:44:30 +0000 (20:44 +0800)
committerbochard <mail@bochard.net>
Wed, 23 Jul 2025 12:44:43 +0000 (20:44 +0800)
README.md

index 2b7d98a8c16c01c3d1b7606a4d30618afb500a1b..dd51a68fc84618e035cbdc756363c2fb8d39b368 100644 (file)
--- a/README.md
+++ b/README.md
@@ -1,9 +1,31 @@
 # sync-works.sh
 Update Git submodules on a final directory and removing the `.git` file.
 
-## process...
+## How it works?
 1. Read the list of submodules in the `works-list.txt` file.
+2. Creates two directory: `/works-tmp` and `works/`.
 2. Checks if submodules from the txt file exists within `works-tmp` folder. If not, add it.
 3. Update the submodules in their remote latest commit.
 4. Copy the submodules from the `works-tmp` directory to the `works` directory while removing `.git` contents simultaneously.
-5. Automatically stage and commit the changes.
\ No newline at end of file
+5. Automatically stage and commit the changes.
+
+## How to use?
+1. Open the directory
+```
+cd path/to/sync-works.sh/
+```
+2. Copy to your project
+```
+cp './sync-work.sh' 'path/to/your/project/'
+```
+3. Give permission to execute
+```
+chmod +x ./sync-works.sh
+```
+4. Then, run...
+```
+./sync-works.sh
+```
+5. Enjoy!
+
+---