github使用中出现问题总结(持续更新)

来源:互联网 发布:软件注册过期怎么办 编辑:程序博客网 时间:2024/05/18 14:28

一、上传自己的工程
看官方的资料最好
1、在github上注册,
2、新建一个repository,加上工程名,(readme.md暂时不加),这时跳出界面,上面就有教程,连接github服务器有三种方法。set up in desktop、http、ssh
2.1首先实验http
1)打开git.shell进入工程目录;
2)git init;
3)git add “file”
git commit -m “infomation”
4)git remote add origin https://github.com/XXXXXX(网页上会给出)
5)git push -u origin master提交到github
2.2ssh和http一样,只要换成ssh链接即可
2.3最后一种就是直接下载github客户端了
二、什么是ssh 密钥
github官方解释为:
Generating SSH keys
SSH keys are a way to identify trusted computers, without involving passwords. The steps below will walk you through generating an SSH key and adding the public key to your GitHub account.
生成ssh密钥看官方教程吧
https://help.github.com/articles/generating-ssh-keys/

0 0