简体   繁体   English

将文件上传到公共存储库GitHub

[英]Upload file into public repository GitHub

I want to upload file into public repository Github, in order people can download my source... Can you help me? 我想将文件上传到公共存储区Github,以便人们可以下载我的源代码...能帮我吗?

Thanks.. 谢谢..

Make sure you have git installed on your machine and created a github repository 确保您已经在机器上安装了git并创建了一个github仓库

open terminal/cmd 打开终端/ cmd

cd /path/to/image/directory cd /路径/到/图像/目录

follow the command below 按照下面的命令

git init
git add -A
git commit -m "Upload images"
git remote add origin https://github.com/your-git-repo.git
git push -u origin master

sample of image source from gihub https://github.com/PenAndPapers/AngularWebPortfolio/blob/master/client/assets/images/header-bg.jpg 来自gihub的图像源示例https://github.com/PenAndPapers/AngularWebPortfolio/blob/master/client/assets/images/header-bg.jpg

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM