码迷,mamicode.com
首页 > 其他好文 > 详细

git

时间:2019-07-21 01:46:05      阅读:118      评论:0      收藏:0      [点我收藏+]

标签:git   数据   conf   HERE   status   添加   name   init   配置   

安装注意:选择Use git from git bash only...其他默认下一步。

配置path:bin目录

配置git:右键-git bash here

            配置用户名  git config --global user.name "XXX"

                     邮箱  git config --global user.email "XXX@xxx"

查看是否配置成功 C:\Users\Administrator:\gitconfig

创建git服务器(远程仓库):托管网站  githud.com

为了在本地和远程仓库之间 免密钥登陆 ,可以配置ssh 

配置ssh:

1、git init //初始化本地git仓库

2、git add<file> //添加文件

3、git status //查看状态

4、git commit //提交

5、git push //推送到仓库

6、git pull  //从远程仓库拉取数据

7、git clone //从远程拷贝数据

git

标签:git   数据   conf   HERE   status   添加   name   init   配置   

原文地址:https://www.cnblogs.com/shenjian156/p/11219765.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!