windows下git 使用教程
来源:互联网 发布:淘宝如何上传3c认证 编辑:程序博客网 时间:2024/06/03 22:04
安装好软件后,桌面右击点击Git Bash打开程序,是一个shell脚本命令,类似于linux的终端命令。
2. git --version (查看版本号)
3.git config --global user.name zcc888 (设置你的用户名 zcc888这是你自己的用户名)
4. git config --global user.email 841617432@qq.com (设置邮箱号 841617432@qq.com这是你自己的邮箱号)
5.git init (初始化工作仓库路径)
6.git remote add origin https://github.com/zcc888/gitTest.git
(连接远程服务器 https://github.com/zcc888/gitTest.git 这是你的提交工作路径,修改为你自己的,
如果显示fatal: remote origin already exists.用命令: git remote rm origin 解决,重新执行上一条命令.)
7. 拷贝项目到你刚刚创建的D盘github文件夹里去
8.git status (查看状态)
9.git add a.txt 将文件上传到本地git库 a.txt我上传的文件名(补充: git add . 提交当前目录下的所有文件)
10.git commit -m 'test' (上传之前,给本次操作取名字 test是我本次操作的名字)
11.git push -u origin master (上传到git服务器 )
多次上传直接重复 7,8,9,10,11步骤即可。
二、使用git下载项目
git clone https://github.com/zcc888/gitTest.git
一、使用git上传项目
1.cd d:/github (进入一个D盘中github文件夹)2. git --version (查看版本号)
3.git config --global user.name zcc888 (设置你的用户名 zcc888这是你自己的用户名)
4. git config --global user.email 841617432@qq.com (设置邮箱号 841617432@qq.com这是你自己的邮箱号)
5.git init (初始化工作仓库路径)
6.git remote add origin https://github.com/zcc888/gitTest.git
(连接远程服务器 https://github.com/zcc888/gitTest.git 这是你的提交工作路径,修改为你自己的,
如果显示fatal: remote origin already exists.用命令: git remote rm origin 解决,重新执行上一条命令.)
7. 拷贝项目到你刚刚创建的D盘github文件夹里去
8.git status (查看状态)
9.git add a.txt 将文件上传到本地git库 a.txt我上传的文件名(补充: git add . 提交当前目录下的所有文件)
10.git commit -m 'test' (上传之前,给本次操作取名字 test是我本次操作的名字)
11.git push -u origin master (上传到git服务器 )
多次上传直接重复 7,8,9,10,11步骤即可。
二、使用git下载项目
git clone https://github.com/zcc888/gitTest.git
阅读全文
0 0
- Git Windows下使用教程
- windows下git 使用教程
- Windows下 Git+TortoiseGit使用教程
- Windows下git安装使用教程
- Windows下git安装使用教程
- windows下git客户端的下载安装及使用教程
- windows下git简易教程
- windows下使用GIT
- windows下使用git
- windows下使用git
- windows下使用git
- windows下使用git
- Windows下 git 使用
- windows下使用git
- windows下使用git
- windows下使用git
- windows下git使用
- Windows 下使用git
- switch
- ArcEngine 获取路径 AddData对话框
- 个人bug笔记(个人保存)
- centOS 6.3 虚拟机上用ifconfig查询没有eth0,处理方法
- 一起学Java_API-Scanner和String用法
- windows下git 使用教程
- css
- 数据库并发控制
- 由浅至深理解js中的this
- Vue.js学习笔记:v-for循环
- 重装
- Android热修复与插件化(四)AndFix
- 桥接的配置方法
- 文本框类控件