Created
May 14, 2023 02:46
-
-
Save diaoenmao/2fb507ad402c586d540afa9ebe14a2aa to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Resume | |
| git clone https://github.com/Collaborative-AI/colda.git | |
| cd colda | |
| # Init | |
| git commit --allow-empty -m "Initial dummy commit" | |
| # Merge for package | |
| git remote add --fetch package https://github.com/Collaborative-AI/Package.git | |
| git merge package/main --allow-unrelated-histories | |
| mkdir package | |
| for file in *; do if [[ "$file" != "package" ]]; then git mv "$file" package; fi; done | |
| git mv .gitignore package | |
| git commit -m "Move package files into subdir" | |
| # Merge for backend | |
| git remote add -f backend https://github.com/Collaborative-AI/Backend.git | |
| git merge backend/main --allow-unrelated-histories | |
| mkdir backend | |
| for file in *; do if [[ "$file" != "package" ]] && [[ "$file" != "backend" ]]; then git mv "$file" backend/; fi; done | |
| git mv .gitignore backend | |
| git mv .env backend | |
| git commit -m "Move backend files into subdir" | |
| # Merge for frontend | |
| git remote add -f frontend https://github.com/Collaborative-AI/Software.git | |
| git merge frontend/main --allow-unrelated-histories | |
| mkdir frontend | |
| for file in *; do if [[ "$file" != "package" ]] && [[ "$file" != "backend" ]] && [[ "$file" != "frontend" ]]; then git mv "$file" frontend/; fi; done | |
| git mv .gitignore frontend | |
| git commit -m "Move frontend files into subdir" | |
| # Merge for frontend | |
| git remote add -f frontend https://github.com/Collaborative-AI/Software.git | |
| git merge frontend/main --allow-unrelated-histories | |
| mkdir frontend | |
| for file in *; do if [[ "$file" != "package" ]] && [[ "$file" != "backend" ]] && [[ "$file" != "frontend" ]]; then git mv "$file" frontend/; fi; done | |
| git mv .gitignore frontend | |
| git commit -m "Move frontend files into subdir" | |
| # Merge for data-collection | |
| git remote add -f data-collection https://github.com/Collaborative-AI/Data-Collection.git | |
| git merge data-collection/main --allow-unrelated-histories | |
| mkdir data-collection | |
| for file in *; do if [[ "$file" != "package" ]] && [[ "$file" != "backend" ]] && [[ "$file" != "frontend" ]] && [[ "$file" != "data-collection" ]]; then git mv "$file" data-collection/; fi; done | |
| git commit -m "Move data-collection files into subdir" | |
| # Merge for data-collection | |
| git remote add -f data-collection https://github.com/Collaborative-AI/Data-Collection.git | |
| git merge data-collection/main --allow-unrelated-histories | |
| mkdir data-collection | |
| for file in *; do if [[ "$file" != "package" ]] && [[ "$file" != "backend" ]] && [[ "$file" != "frontend" ]] && [[ "$file" != "data-collection" ]]; then git mv "$file" data-collection/; fi; done | |
| git mv .gitignore data-collection | |
| git commit -m "Move data-collection files into subdir" | |
| # Merge for website | |
| git remote add -f website https://github.com/Collaborative-AI/Website-Synspot.git | |
| git merge website/main --allow-unrelated-histories | |
| mkdir website | |
| for file in *; do if [[ "$file" != "package" ]] && [[ "$file" != "backend" ]] && [[ "$file" != "frontend" ]] && [[ "$file" != "data-collection" ]] && [[ "$file" != "website" ]]; then git mv "$file" website/; fi; done | |
| git mv .gitignore website | |
| git commit -m "Move website files into subdir" | |
| # Merge for algorithm | |
| git remote add -f algorithm https://github.com/Collaborative-AI/Algorithm-Gradient-Assisted-Learning.git | |
| git merge algorithm/main --allow-unrelated-histories | |
| mkdir algorithm | |
| for file in *; do if [[ "$file" != "package" ]] && [[ "$file" != "backend" ]] && [[ "$file" != "frontend" ]] && [[ "$file" != "data-collection" ]] && [[ "$file" != "website" ]] && [[ "$file" != "algorithm" ]]; then git mv "$file" algorithm/; fi; done | |
| git mv .gitignore algorithm | |
| git commit -m "Move algorithm files into subdir" | |
| # Merge for backend-deprecated | |
| git remote add -f backend-deprecated https://github.com/Collaborative-AI/Backend-Software-Apollo.git | |
| git merge backend-deprecated/main --allow-unrelated-histories | |
| mkdir backend-deprecated | |
| for file in *; do if [[ "$file" != "package" ]] && [[ "$file" != "backend" ]] && [[ "$file" != "frontend" ]] && [[ "$file" != "data-collection" ]] && [[ "$file" != "website" ]] && [[ "$file" != "algorithm" ]] && [[ "$file" != "backend-deprecated" ]]; then git mv "$file" backend-deprecated/; fi; done | |
| git mv .gitignore backend-deprecated | |
| git commit -m "Move backend-deprecated files into subdir" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment