下载MNIST:
Tensorflow的代码仓库已经从 GoogleSource 迁移到了 Github,所以指南上提供的链接已经下载不了了。
克隆 TensorFlow 仓库:git clone git@github.com:tensorflow/tensorflow.git
下载完毕后进入tensorflow/examples/tutorials/mnist/目录,这里存放着MNIST的所有代码。
(from:https://keifergu.github.io/2016/11/22/tensorflow-learning-note/)
SSH连接配置:
由于出现以下warning,需要配置ssh
Warning: Permanently added 'github.com,52.74.223.119' (RSA) to the list of known hosts.
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
前提是新建好了一个库test-git
创建一个版本库非常简单,选择一个合适的地方,创建一个空目录:
在Git Bash中输入命令:
配置SSH连接:
key在id_rsa.pub里(id_rsa.pub如何查看:使用cd命令进入.ssh目录,再使用more id_rsa.pub命令查看公钥的内容)
然后克隆 TensorFlow 仓库:
git clone git@github.com:tensorflow/tensorflow.git