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

Git的常用命令

时间:2018-07-20 22:30:12      阅读:128      评论:0      收藏:0      [点我收藏+]

标签:clone   bsp   github   name   git使用   email   one   常用   用户   

自己最近打算总结了一下git,系统的学习一下。

 

..1.git使用配置

  $ git config --global user.name  你的用户名 (如果没有需要在github创建一个)

  $ git --config global user.email 你的邮箱 

2.克隆(从远程克隆到本地)

  git clone https:/ ... (这个是你的地址) 

3.提交到暂存区

  git add 文件名字

  git add .  //添加所有的文件到暂存区

 

4.提交本地仓库

  git commit 文件名字

  git commit . //提交所有 暂存区的文件到本地仓库

5.提交到远程

  git push 

会有提示你输入用户名和密码

6.

 

Git的常用命令

标签:clone   bsp   github   name   git使用   email   one   常用   用户   

原文地址:https://www.cnblogs.com/JIKes/p/9343767.html

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