From 55f69d2f304564c66a1e70a4d89143df44dd9d9a Mon Sep 17 00:00:00 2001 From: ayatalkayed Date: Thu, 28 Dec 2023 11:21:38 +0300 Subject: [PATCH] commands --- README.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/README.md b/README.md index 01b3556..18abcec 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,26 @@ # 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 +``` +git switch main +git pull origin main +git submodule update --remote Common_Library +git switch Dev-DeveloperName +git pull origin main +//Slove any conflict locally +git add . +git commit -m "representative commit for what you do" +git push origin Dev-DeveloperName +//create a pull request from your branch to the main branch +```