We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 小白入门(四)本地与远程仓库的交互 这篇介绍比较详细,如果你现在已经新建了仓库(最好设成私有的),本地有个文件夹,如何快速上传文件夹至仓库。
首先进入这个文件夹,右击点击 Git Bash Here。
依次输入下面的语句:
git init // 初始化版本库 git add . // 添加文件到版本库(只是添加到缓存区),.代表添加文件夹下所有文件 git commit -m "first commit" // 把添加的文件提交到版本库,并填写提交备注 git remote add origin 你的远程库地址 // 把本地库与远程库关联 git push -u origin main // 第一次推送时 git push origin main // 第一次推送后,直接使用该命令即可推送修改
返回目录:GitHub 入门教程 ◀
The text was updated successfully, but these errors were encountered:
No branches or pull requests
首先进入这个文件夹,右击点击 Git Bash Here。
依次输入下面的语句:
然后更新你的仓库,文件夹上传成功!
返回目录:GitHub 入门教程 ◀
The text was updated successfully, but these errors were encountered: