使用git上传本地代码到github上
来源:互联网 发布:婚纱摄影后期软件 编辑:程序博客网 时间:2024/05/29 10:09
注意:上传的前提条件是已安装好git.exe已注册有github账号,此处不再重点提及
1.进入本地的项目目录,右键“Git Bash here”,调出git命令行界面,然后输入
git init
2.就是将目录下的所有文件上传,也可以将“.”换成具体的文件名
git add .
3.将项目提交到gitHub
git commit -m "注释语句"
如果是第一次上传代码到github会提示让你输入账号密码,否者请忽略这一步
4.在github上创建新的repository
5.点击 “Create repository”跳转到一个连接,如下红色箭头获取到本项目的github地址
6.将本地的代码关联到github上
git remote add origin 项目的github地址(红色箭头那里)
7.上传代码到github之前需要先pull
git pull origin master
8.上传代码到远程仓库
git push -u origin master
之后输入github账号,密码,上传到github
然后出现上图信息就大功告成!
0 0
- 使用git上传本地代码到github上
- git 上传本地代码到github上
- win7下安装使用git以及上传本地代码到gitHub上
- 如何使用Git将本地代码上传到github上【图文】
- github 本地代码上传到github上
- 第一次使用Git上传本地项目到github上
- 使用Git将本地代码上传到GitHub
- 使用Git上传本地项目代码到github
- 使用Git将本地代码上传到GitHub
- 使用git将本地代码上传到github
- Git 上传本地代码到github
- [Git]本地代码上传到github
- git 上传本地代码到github
- 使用git提交本地代码到github上
- 使用git上传已有的代码到github上
- 使用git将项目代码上传到gitHub上
- 上传本地代码到github上
- 如何上传本地代码到github上
- SuperMap iCloudManager OpenStack平台部署指南
- MyBatis嵌套查询解析
- android 自带的design包中tablayout使用
- 使用FastJSON,将对象或数组和JSON串互转
- ZOJ Problem Set
- 使用git上传本地代码到github上
- 简单错误记录(LinkedHashMap:有顺序的存和取)
- Aspose.Cell 导出Excel
- 怎么才能做一个成功的微商!
- 最小费用流
- 0417
- 组织机构树
- IOS 数据库底层封装和Block回调
- labview 2016安装