Azure Repos¶
work steps¶
clone repo to local machine:
git clone https://dev.azure.com/{organization}/{project}/_git/{repo-name}create a new branch:
git checkout -b your-feature-branchcommit changes:
git add . && git commit -m "test" && git push origin your-feature-branchcreate a pr and merge to main
sync local branch:
git checkout main && git pull origin maindelete local branch:
git branch -d your-feature-branchdelete remote branch:
git push origin --delete your-feature-branch
git clone¶
Error
fatal: Cannot determine the organization name for this 'dev.azure.com' remote URL.
Ensure the `credential.useHttpPath` configuration value is set, or
set the organization name as the user in the remote URL '{org}@dev.azure.com'.
Solution: setting can be specific to Azure Repos