forked from nafith/GIT-COMMAND
commands
This commit is contained in:
parent
e65e0c9ae0
commit
55f69d2f30
24
README.md
24
README.md
|
|
@ -1,2 +1,26 @@
|
||||||
# GIT-COMMAND
|
# 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
|
||||||
|
```
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue