GitHub把自己整个文件夹上传

原文:https://www.cnblogs.com/BobHuang/p/8566917.html

GitHub把自己整个文件夹上传

我已经有了自己github,但是我怎么对我的项目进行上传呢,普通的上传只有上传单一的文件

这不我去下载了Git(链接至机房ftp文件夹下文件ftp://10.64.130.1/%C8%ED%BC%FE/Git-2.17.0-64-bit.exe)

然后开始使用Git Bash

Git要求每台电脑都要有自己的用户名(User Name)和邮箱(Email)

所以我就自己设置下,这些均为黑框框的操作,也就是命令行,但是不要怕,我们还是有图形界面的

git config --global user.name "your name"
git config --global user.email "your email"

 建立和上传SSH Key

找到你这台电脑的管理员账户

文件夹下有这个

用txt打开id_rsa.pub

然后到Github setting把这个填进去,Title随意

在自己电脑里找到自己所要上传的文件夹,右键Git Bash here

git init

其文件夹下会建立一个.git文件夹

git remote add origin [email protected]:你的账户/你的仓库名称.git

推荐先把两边同步下

git pull --rebase origin master
git pull origin master
git add .
git commit -m 'first_commit'
git push origin master
大佬您太强了,还请多多指教哎
标签: Github
0
0
« 上一篇: 2018年天梯赛第一次训练赛
» 下一篇: csa Round #73 (Div. 2 only)
	</div>
	<div class="postDesc">posted @ <span id="post-date">2018-03-14 12:57</span> <a href="https://www.cnblogs.com/BobHuang/">暴力都不会的蒟蒻</a> 阅读(<span id="post_view_count">3179</span>) 评论(<span id="post_comment_count">0</span>)  <a href="https://i.cnblogs.com/EditPosts.aspx?postid=8566917" rel="nofollow">编辑</a> <a href="#" onclick="AddToWz(8566917);return false;">收藏</a></div>
</div>
发布了21 篇原创文章 · 获赞 47 · 访问量 11万+

猜你喜欢

转载自blog.csdn.net/h_l_dou/article/details/86090870
今日推荐