git初遇
来源:互联网 发布:怎么举报淘宝售假 编辑:程序博客网 时间:2024/06/05 14:54
No2. 看图学习
什么时候自己能把知识转化为清晰的图解就好了!
摘自图解git
就摘了一个图,其他就直接点网址看吧!
图解随好,但还是要有一定的基础。
以下是我今天敲过的命令,记录一下,免得忘记了。
git remote add [alias] [url]git remote rm [alias]git add * #递归添加新文件git add . #git checkout -b feature_xgit checkout mastergit branch -d feature_x #删除新建分支git push origin <branch> #将分支推送到远端仓库
入门文档
累了,不想学了。。。。。。。。。。。。。。
No1.
结合廖雪峰博客和官方文档事半功倍。
以下是我今天敲过的命令,记录一下,免得忘记了。
git status
git init
git config --global user.name "***"
git config --global user.email "***@gmail.com"
git add a.md
git commit -m "this is my comments"
git log
git config --list
git help (config)
不知道以下为什么Repository not found.
git clone git://github.com/(username)/grit.git mytest
git add README #开始追踪
git commit -a -m 'comments' #不用add,直接commit
git mv a.md c.md #改名字
若要忽略/不想跟踪m某些文件,就新建一个名为 .gitignore 的文件。里面写上*.[oa]类似字符。
电脑版本与缓存区对比,git diff
commit版本和缓存区对比git diff --staged(cached)
点击git官方文档。超级有用。
0 0
- git初遇
- 初遇git
- git
- git
- Git
- Git
- Git
- Git
- git
- git
- Git
- GIT
- git
- GIT
- Git
- git
- git
- Git
- 省选集训 一道很水(Keng) 的SPFA
- python(实操4):录音文件的读取、写入、绘制波形、录音、播放等
- long double atan2函数 Pi=acos(-1)
- windows安装Apache,注册服务出现“(OS 5)拒绝访问。 : AH00369: Failed to open the WinNT service manager..."错误
- Python在命令提示符cmd中运行程序
- git初遇
- 剑指offer-面试题36-数组中的逆序对(O(n)复杂度)
- hdu 1312Red and Black
- 三个表关联,如何在页面显示三个表的数据
- POJ-1988 Cube Stacking (并查集)
- 17.4.3 图论专题 校内赛(Bricks)(Drive)(Graph)(Airplane)
- Leetcode-92. Reverse Linked List II
- HDU 1724
- 2016-蓝桥杯省赛-C语言大学B组_方格填数_【DFS&全排列】