利用git上传文件到github
2024-10-19 12:02:03
git add 文件名称/. “.”代表全部
git commit -m -a
git push -u origin master 推送到远程仓库
------------------------------------------
配置git到github
git config --global user.name "Your Name"
git config --global user.email "email@example.com"
设置与github的关联可用ssh
ssh-keygen -t rsa -C "your_email@youremail.com"
--------------------------------------------------
利用https上传github
clone https地址到本地
在本地新建一个文件夹,然后利用右键git bush(windows)或者cd
git clone https://github.com/zonghanli/123.git(右面的为你自己仓库的地址)
添加上传文件
git add . //注意add后面有一个空格和.
commit与push
git init
git commit -m ‘stumansys’
git remote add origin https://github.com/zonghanli/123.git(右面的为你自己仓库的地址)
git push origin master
(git remote 报错“”the key is already”的话,git remote rm origin)
最新文章
- iOS-APNS证书申请与使用
- (原) tmux安装与使用
- 发布 PM2.5 数据的城市列表
- LRU Cache
- Poj(3615),Floyd,最大值中的最小值
- poj2239 Selecting Courses --- 二分图最大匹配
- CentOS 7 安装教程
- React-nwb的使用
- CountDownLatch, CyclicBarrier and Semaphore
- Angular页面选项卡切换要注意的toggleClass
- RBAC权限模型——项目实战(转)
- python zip()函数
- mysql 开发基础系列21 事务控制和锁定语句(下)
- 最接近原点的K个点
- javascript +new Date()
- 【巷子】---webpack配置非CMD规范的模块
- Mouse Touch Stylus
- MyEclipse 智能提示设置
- 2017ACM暑期多校联合训练 - Team 9 1010 HDU 6170 Two strings (dp)
- eclipse svn 以一种访问权限不允许的方式做了一个访问套接字的尝试
热门文章
- UML-基于GRASP对象设计步骤
- python pandas写入excel文件
- JavaScript—原生轮播和无缝滚动
- Elastic ik插件配置热更新功能
- 生产事故(MongoDB数据分布不均解决方案)
- 云托管,边缘物理计算&;托管物理计算,你所需要了解的……
- cisco路由器license的相关命令简单梳理(转)
- python import xx和from xx import x 中的坑
- Python 安装zbar-py时出现 无法打开包括文件: “unistd.h” no such file or directory
- Sublime Text3 作Markdown编辑器 配置