git项目上传github

1.注册好github,下载好git和git-for-windows

2.在git-bash下,生成ssh(在网络层数据传输的安全协议),粘贴到GitHub设置中。

3.在git-bash中输入命令

      1)…or create a new repository on the command line(在github创建新仓库)

echo "# faster" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin [email protected]:youname/faster.git
git push -u origin master

  2)…or push an existing repository from the command line

git remote add origin [email protected]:youname/faster.git 
git push -u origin master

 你的代码就上传好了!

参考链接:

https://www.bilibili.com/video/av81679096 这个博主的几个视频都与git有关

https://blog.csdn.net/wudinaniya/article/details/77508229可能会用到的操作

https://blog.csdn.net/qq_41320857/article/details/79292949?depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task可能会用到的操作

 

扫描二维码关注公众号,回复: 10083320 查看本文章

猜你喜欢

转载自www.cnblogs.com/wywshtc/p/12551065.html