网站首页技术博客

Git使用指南For Windows​

洞天水月2021-03-12 14:27:472611人次阅读
摘要Git For Windows 新手使用指南,详见附件

Git使用指南

下载地址:https://git-for-windows.github.io/

$ git config --global user.name #你是谁
$ git config --global user.email #怎么联系你
$ cd E:/
$ mkdir test
$ git init

编辑PHP文件后, # git status , 查看仓库状态

$ git status
$ git add index.php
$ git commit -m "新建index.php"

$ git add index.php
$ git commit -m "改了第2行"

# 开始删除
$ git rm foo.php

git remote -v
origin https://git.oschina.net/lianshou/test.git (fetch)
origin https://git.oschina.net/lianshou/test.git (push)

git remote add origin https://git.oschina.net/lianshou/test.git

git remote rename <旧名称> <新名称>
git push gitaddr master

手册下载:

git.pdf


文章评论