一开始我也好奇哪来的验证 I wonder why, but it’s required
第一步添加远程仓库First add remote:
git remote add origin 仓库链接commandLine
第二步新建分支createNewBranch:
git checkout -b 新分支名newBranchName
第三步查看分支checkCurrentBranch:
git branch
第四步第一次上传firstPush:
git push -u orgin newBranchName
-u 代表第一次 -u means first push
在第四步时出问题了,除了要登录相应账户,还要提供密码。
Now the problem is, except for logging in related account, a password is required.
Password for 'https://Zyu3907@dev.azure.com/Zyu3907/AndroidFinal_MananShah_ZhibinYu/_git/AndroidFinal_MananShah_ZhibinYu':
为了解决这个问题,我们需要到Azure里,使用Generate Git credentials生成密码。
To solve this problem, we need to use ‘Generate Git credentials’ in Azure to get the password.
使用生成的密码即可。
Use the generated password and it’s alright.