如何使用git提交代码
1.你要有一个github账号
2.电脑上安装了git
3.在github上 创建一个仓库
https://github.com/testlyr/testgit.git
4.在本地建仓库 写代码
- create a new repository on the command line
echo "# testgit" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/testlyr/testgit.git
git push -u origin master
- push an existing repository from the command line
git remote add origin https://github.com/testlyr/testgit.git
git push -u origin master
5.github与git之间怎么建立连接
- 生成ssh密钥
- 找到密钥
- 粘贴到github的setting里
6.Git使用教程:最详细、最傻瓜、最浅显、真正手把手教!
- 用户名 密码
- init
- add
- commint
- pull
- push