标签:
1.把github里面的库克隆到指定目录
格式:git clone ssh地址 "路径" (命令不清楚的可以用linux查看命令的方法 git clone --help)
$ git clone git@github.com:dunitian/Windows10.git "F:/Work/WP/Windows10"
Cloning into ‘F:/Work/WP/Windows10‘...
remote: Counting objects: 729, done.
remote: Total 729 (delta 0), reused 0 (delta 0), pack-reused 729
Receiving objects: 100% (729/729), 5.58 MiB | 702.00 KiB/s, done.
Resolving deltas: 100% (470/470), done.
Checking connectivity... done.
2.切换到指定目录 (windows不区分大小写,Linux就要注意了)
$ cd f:/work/wp/windows10
3.查看一下状态和日记(做完每一步都可以看看,新手多用用,每次提交的时候多用用)
DNT@DESKTOP-PTACRF6 MINGW64 /f/work/wp/windows10 (master)
$ git status
On branch master (在master分支里面)
Your branch is up-to-date with ‘origin/master‘.
nothing to commit, working directory clean (没有提交)
DNT@DESKTOP-PTACRF6 MINGW64 /f/work/wp/windows10 (master)
$ git log (提交日记)
commit 1bb5aa4761f9775d8590668115d9cf14a0148100
Author: dunitian <1054186320@qq.com>
Date: Thu Dec 10 12:14:16 2015 +0800
逆天WP-Win10开发笔记源码(学习ing)
4.创建分支,恢复历史版本,消除冲突,修改提交信息,获取远程最新仓库分支等
GitHub实战系列~4.把github里面的库克隆到指定目录+日常使用+分支操作 2015-12-11
标签:
原文地址:http://www.cnblogs.com/dunitian/p/5037613.html