git使用

来源:互联网 发布:大掌柜软件使用教程 编辑:程序博客网 时间:2024/06/08 01:49

1基础配置    git  config --global user.name "你的名字"设置你的名字   -----your name

                    git config --global user.email "xxxxxx@xxxx"设置你的邮箱   ------your email

2  cd命令不用说,找到你要创建仓库的地方   创建   gitcode/goodsManage    创建项目仓库   goodsManage为项目名

  执行指令 git init

  查看状态  git status

  创建你要提交的文件或者拷贝项目到  仓库文件下(在这里是在  goodManage)

  git add  文件(你要提交的文件)

  git commit -m "描述一下文件"   必需加描述

  (生成公钥这里不解释  可找方法参看文件   这里所讲没加公钥的方法  )

3 连接远程的git库

   git remote add gitcode   https://...... 远程库的地址

   将当前分支上传

   git push -u gitcode master

   ------------------------------------------------------------------git工具使用-------------------

eclipse用git

http://favccxx.blog.51cto.com/2890523/1214687

(avery
e-mail:Avery@linxing)

原创粉丝点击