上传本地代码到github
来源:互联网 发布:虚拟试衣软件 编辑:程序博客网 时间:2024/05/23 19:17
背景:一个全新的github项目,第一次上传文件
第一步:建立git仓库
cd到你的本地项目根目录下,执行git命令git init
第二步:将项目的所有文件添加到仓库中
git add .如果想添加某个特定的文件,只需把.换成特定的文件名即可
git commit -m "注释语句"
第四步:去github上创建自己的Repository
假设创建好的库的ssh地址是:git@github.com:tlexy/PracticeHttp.git
第五步:将本地的仓库关联到github
git remote add origin git@github.com:tlexy/PracticeHttp.git
第六步:pull一下,执行如下命令
git pull origin master
第七步,也就是最后一步,上传代码到github远程仓库
git push -u origin master
0 0
- 上传本地代码到github
- 上传本地代码到github
- 本地代码上传到github
- 上传本地代码到GitHub
- 上传本地代码到github
- 上传本地代码到github
- 上传本地代码到github
- 上传本地代码到github
- 上传本地代码到github
- 上传本地代码到GitHub
- 上传本地代码到github
- 本地代码上传到github
- 上传本地代码到GitHub
- 上传本地代码到github
- 上传本地代码到github
- 本地代码上传到GitHub
- 上传本地代码到gitHub
- 上传本地代码到GitHub
- android stdio使用时遇到的一些困难
- Handler实现每n秒一次的无线循环
- OpenGL 几何着色器 传入点,绘制三角形
- 死锁的原因分析和避免办法
- POJ 2924 Gauß in Elementary School G++
- 上传本地代码到github
- Delphi
- python 使用pytesseract图片文字识别
- android 横向可滑动的图片
- 未来十二大发展趋势
- TCP(HTTP)长连接和短连接区别和怎样维护长连接
- Mybatis 级联介绍
- Java--集合(Set:HashSet,TreeSet)
- 对象数组,对象指针