git如何使用

£可爱£侵袭症+ 提交于 2019-12-23 08:38:27

如何使用git提交代码

1.你要有一个github账号

2.电脑上安装了git

3.在github上 创建一个仓库

https://github.com/testlyr/testgit.git

4.在本地建仓库 写代码

  1. 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
  1. 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
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!