R7000@DESKTOP-30AFPHP MINGW64 /d/Workspace/Py/gitest $ git clone
https://XXXX8009@dev.azure.com/XXXX8009/GitTestProject/_git/GitTestProject
Cloning into 'GitTestProject'... fatal: User canceled authentication.
error: unable to read askpass response from
'D:/Git/mingw64/bin/git-askpass.exe' Password for'https://XXXX8009@dev.azure.com/XXXX8009/GitTestProject/_git/GitTestProject':
fatal: Authentication failed for'https://dev.azure.com/XXXX8009/GitTestProject/_git/GitTestProject/'
R7000@DESKTOP-30AFPHP MINGW64 /d/Workspace/Py/gitest $ git clone
git@ssh.dev.azure.com:v3/XXXX8009/GitTestProject/GitTestProject
Cloning into 'GitTestProject'... Load key
"/c/Users/R7000/.ssh/id_rsa": invalid format git@ssh.dev.azure.com's
password: Permission denied, please try again. git@ssh.dev.azure.com's
password: Permission denied, please try again. git@ssh.dev.azure.com's
password: git@ssh.dev.azure.com: Permission denied
(password,publickey). fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository
exists.
1. HTTPS配合用户名和密码访问Git
1.1 获取当前项目的用户和密码
选择项目的方式为HTTPS:
生成用户名和密码
1.2 通过临时用户获取Git权限
由于Azure比较特殊会提示登录VS,这边取消了登录VS会提示fatal: User canceled authentication.但是用户名和密码是可以使用的
R7000@DESKTOP-30AFPHP MINGW64 /d/Workspace/Py/gitest
$ git clone https://XXXX8009@dev.azure.com/XXXX8009/GitTestProject/_git/GitTestProject
Cloning into 'GitTestProject'...
fatal: User canceled authentication.
remote: Azure Repos
remote: Found 22 objects to send. (2 ms)
Unpacking objects: 100% (22/22), 5.62 KiB |122.00 KiB/s, done.
R7000@DESKTOP-30AFPHP MINGW64 /d/Workspace/Py/gitest/GitTestProject (main)
$ git status
On branch main
Your branch is up to date with 'origin/main'.
nothing to commit, working tree clean
$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter fileinwhich to save the key (/c/Users/R7000/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /c/Users/R7000/.ssh/id_rsa
Your public key has been saved in /c/Users/R7000/.ssh/id_rsa.pub
The key fingerprint is:
SHA256:QevS8lBgx8OihC4ipYP+4fmg1vBuH9DrXTuzqRHmq2A R7000@DESKTOP-30AFPHP
The key's randomart image is:
+---[RSA 3072]----+
|. ooo || o ...++. ||.+ .. .+. ||B . o + .||+o . .+oS || o ..+=. || *Eoo o..|| .oB+ o +oo ||..o.o=.+.++ |
+----[SHA256]-----+
1. 前言
我们首先来实现一个Compose的动画(animateDpAsState)
var big by remember {mutableStateOf(false)
}
val size by animateDpAsState(if (big) 100.dp else 50.dp)Box(Modifier.size(size).background(Color.Blue).clickable {big !big}) {}运行程序,来看…