没有理由的喜欢我是程序员;您好程先生;叫我序员就好了技术文

git 学习笔记

2015-02-01  本文已影响401人  shenzhenboy

git 宝典

git born & history

git 维基百科

git local or client

install

初次使用时,使用 git config 配置 git 工作环境

初始化版本库

git 文件操作

git status 当前仓库所有文件的状态。

git add 跟踪未跟踪的文件 或者 暂存未暂存的文件

gitignore 忽略某些不需要跟踪的文件

git diff 当前仓库中修改的文件和暂存区域中的文件的差别,也就是修改之后还没有赞成起来的变化.

git diff --cache/--stage 已暂存的和上次上次提交时的差异。

git commit 提交更新

移除文件

git mv移动文件

git log 查看提交历史

Undoing things

working with remote(local side)

Managing remote repositories includes knowing how to add remote repositories, remove repositories,manager various remote branches and define them as being tracked or not.

fetching and pull from remote

pushing to remote

上一篇 下一篇

猜你喜欢

热点阅读