Nothing Special   »   [go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub 小白入门(六)GitHub 提交文件夹快速版 #12

Open
CatOneTwo opened this issue Apr 7, 2021 · 0 comments
Open

GitHub 小白入门(六)GitHub 提交文件夹快速版 #12

CatOneTwo opened this issue Apr 7, 2021 · 0 comments
Labels
入门 入门系列

Comments

@CatOneTwo
Copy link
Owner
CatOneTwo commented Apr 7, 2021

导读:GitHub 小白入门(四)本地与远程仓库的交互 这篇介绍比较详细,如果你现在已经新建了仓库(最好设成私有的),本地有个文件夹,如何快速上传文件夹至仓库。

首先进入这个文件夹,右击点击 Git Bash Here。
image

依次输入下面的语句:

git init   // 初始化版本库

git add .   // 添加文件到版本库(只是添加到缓存区),.代表添加文件夹下所有文件 

git commit -m "first commit" // 把添加的文件提交到版本库,并填写提交备注

git remote add origin 你的远程库地址  // 把本地库与远程库关联

git push -u origin main    // 第一次推送时

git push origin main  // 第一次推送后,直接使用该命令即可推送修改

然后更新你的仓库,文件夹上传成功!

返回目录:GitHub 入门教程

@CatOneTwo CatOneTwo added the 入门 入门系列 label Apr 7, 2021
@CatOneTwo CatOneTwo changed the title GitHub小白入门(六)GitHub提交文件夹快速版 GitHub小白入门(六)GitHub 提交文件夹快速版 Apr 7, 2021
@CatOneTwo CatOneTwo changed the title GitHub小白入门(六)GitHub 提交文件夹快速版 GitHub 小白入门(六)GitHub 提交文件夹快速版 Apr 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
入门 入门系列
Projects
None yet
Development

No branches or pull requests

1 participant