...
11. check origin: git remote -v
12. If has already attached a remote origin, we need to remove origin: git remote rm origin
13. Add devops origin: git remote add origin https://tcnarwhals@dev.azure.com/tcnarwhals/MPDIS-SDDPM_Scrum/_git/MPDIS-SDDPM_Scrum
Tip |
---|
If the DevOps Master branch has ReadMe.md file created and committed, we need to run the following commands to merge remote and local together. git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks pull --no-commit origin master --allow-unrelated-histories git commit -m "Merge branch 'master' of https://dev.azure.com/DSD-Marine/MSS-Portfolio/_git/MPDIS-SDDPM_Scrum" |
14. git push -u origin --all
...