# GIT-COMMAND ## Clone a repo ``` git clone --recurse-submodules *The repo link* ``` ## Update the local version of the common library ``` cd *to the microservise* git submodule update --remote Common_Library ``` ## Push from the local repo to the remote repo #### save your work ``` git switch Dev-Dania git add . git commit -m "representative commit for what you do" ``` #### update the local main branch ``` git switch main git pull origin main git submodule update --remote Common_Library ``` #### sync your branch with the main branch ``` git switch Dev-Dania git pull origin main git submodule update --remote Common_Library # Slove any conflict locally ``` #### push your work to the remote repo ``` git add . git commit -m "representative commit for what you do" git push origin Dev-Dania # create a pull request from your branch to the main branch ```