git版本控制管理实践-3
git -m 和git -a -m(-am) . 的区别?
usally two steps to commit files to respository:
first, git add somefiles/dir;
second, git commit -m 'commit log messages'
but, the two steps above can be executed as one action: git -am commit somefiles/dir.
that is to say, if there are not new files to be tracted, 'git -am commit' will add those modified files to index and commit them.
Both 'dnf' and 'git' and 'systemctl' are applications, they are followed by commands. Their formats are similar: git/dnf/systemctl list-unit/start some-service [options] command [

remote repository has two forms: project development with working tree and only for codes share in team development.
the former is called remote developing repos, and the latter is named bare codes-share repos. developing repos are often cloned by git client. bare codes share repos are only used to share codes in most cases, which do not include working directory. (in most cases: for verb. adv. , but 'for the most part', describes noun.)
Remote Repos Management
Sometimes, a cloned git repos is named ***.git, but the repo is a directory actually.
In general, 'repo' refers the directory which includes '.git'. And repo is named ***.gitfor easy recognition.
A repo may be cloned into an existing specified local directory, but this is only allowed when the directory is empty. Repo is cloned into a newly created directory whose name is same as the remote one by default, so, a local directory will have to be written explictly. The command perhaps looks like this: git clone repo-urls
In general, URLs contain information about the transport protocol, the address of the remote server, and the path to the repository.

Scp and Ssh
Scp: secure cp (for file trans-mission between a remote network host and a local host). Referenced article's address: http://www.cnblogs.com/ilikeballs/p/5113349.html. The usage of Scp is almost same as cp, so it is easy.
If the transport protocol is ssh When cloning a remote repo, the remote repo info may be alternatively applied scp-like syntax.
About transport protocol:
Only git and ssh support ~username expansion. '~' is the current user's home directory. '~username' can also be used to refer the specified user's home directory.

Ssh protocol is also allowed to use scp-like syntax. That is, ssh protocal 'ssh://' can be omitted.
For local repositories, use the form like this '/path/to/repo.git' or like this 'file:///path/to/repo.git'
The three syntax alternatives(adj. n. 可替换的事物)above are showed in the following figure:

- comma is ',' colon is ':' semicolon is ';' period is '.'
Usually, the suffix['s^fiks] '-d' indicates that program is a deamon, such as httpd, sshd. Oppositely, no '-d' suffix shows that program is a client application, such as ssh. Further more, daemon command files reside in directory "/usr/sbin/", client command files reside in directory "/usr/bin/ .

mariadb-server is a client-server implementation consisting of(using active voice not passive voice) a mariadb server(mysqld) and other relative files, such as many different client programs and libraries.
'epoch': ['ip2k], 时代, 纪元...
In English, there is no bookname brackets, that expresses in italic font. In American English, quotes are double-quotes, however, in England English, quotes are single-quotes. Of course, both single quote and double quote are used at the same time.
How to resolve the error: "cann't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'(2 no such file or directory) "

The command 'dnf install mariadb-server' will introduce the following packets into your computer:

The two configures above show that after installing "mariadb-server", the directory '/usr/lib/' has 'mysql' sub-directory.
In Fedora 23, service daemon files, such as httpd, sshd, mysqld etc do not reside in the directory "/etc/rc.d/init.d/, but are put in the path: /usr/lib/systemd/...(-d shows that this is daemon about system)


The content in the [square brackets] is named 'group'

Readline is a cross-platform open-source gnu library. It is mostly used in command line programs in linux and other unix-like OS.
To check mysql/mariadb version, use command "status" or "selecct version() as ver" after login/connect to sql server.
In sql server, execute "system (or \!) + shell-command" to run system command.
How to create a remote repo for cloning?
git repository is indeed directory "/some/path/to/working-dir/.git"

After add a remote repository, the file .git/config is appended [remote]group:

To git remote push local master branch to remote origin repo, make sure that the sshd service has been started and is running.



git版本控制管理实践-3的更多相关文章
- git版本控制管理实践-4
vcs: version control system 版本控制系统 local vcs, 集中式版本控制系统: centralized vcs; 分布式vcs: distributed vcs Lo ...
- git版本控制管理实践-2
给网站设置一个 "根目录下的logo.ico", 还是很有必要的,比如赶集网,这时在 "历史"搜索时, 就可以根据 网站的 logo.ico 很轻松的就能够找到 ...
- Git 版本控制管理(二)
Git 分支管理 1. 概念 我们来抽象的理解,分支就是科幻电影里面的平行宇宙,当你正在电脑前努力学习Git的时候,另一个你正在另一个平行宇宙里努力学习SVN.如果两个平行宇宙互不干扰,那对现在的你也 ...
- 利用Git版本控制管理你的项目
准备工作 项目创建完成后,将项目版本控制起来,今后每个版本的迭代会非常清楚,同时也有助于项目进行协同开发. 还有一个十分重要的问题是:项目上线后,线上的运行的程序的配置与线下进行测试的配置文件是不一样 ...
- Git版本控制管理学习笔记1-介绍
几乎所有的版本控制工具都是出于同样的目的:开发以及维护开发出来的代码,方便读取代码的历史,记录所有的修改.这里,介绍的是当前在开源社区内非常流行的版本控制工具Git.它是由Linus Torvalds ...
- Git版本控制管理教程(一):介绍
我的个人博客地址:damienzhong.com 原文链接:点击打开链接 1.1 背景 数据是短暂的,且容易丢失的,特别是作为开发人员的我们每天频繁的对项目代码进行更新,容易产生错误代码的变更或者项目 ...
- Git 版本控制管理(一)
Git 是一个分布式版本控制工具,它的作者 Linus Torvalds 是这样给我们介绍 Git —— The stupid content tracker(傻瓜式的内容跟踪器) 关于 Git 的 ...
- Git版本控制管理学习笔记4-文件管理和索引
可以认为使用Git时,我们会遇到3个空间:工作目录.索引.版本库.我们关心的,就是在新建.修改等操作时,这三者之间发生了怎样的变化. 笼统的讲,就是在工作目录下编辑,在索引中积累修改, ...
- Git版本控制管理学习笔记3-基本的Git概念
为了更近一步的学习和理解Git的理念,这一节介绍一下Git中的一些基本概念. 基本概念 对象库图示 Git在工作时的概念 一.基本概念: 1.版本库: Git的版本库就是一个简单的数据库,其中 ...
随机推荐
- Nagios监控平台搭建
Nagios是一款开源的免费网络监视工具,能有效监控Windows.Linux和Unix的主机状态,交换机路由器等网络设置,打印机等.在系统或服务状态异常时发出邮件或短信报警第一时间通知网站运维人员, ...
- C库函数使用与总结之字符串处理函数
1. memcpy(拷贝内存内容) [头文件]#include <string.h> [函数原型]void *memcpy(void *dest, const void *src, siz ...
- 关于java中的MANIFEST.MF 文件内容
打开Java的JAR文件我们经常可以看到文件中包含着一个META-INF目录, 这个目录下会有一些文件,其中必有一个MANIFEST.MF,这个文件描述了该Jar文件的很多信息.可以简化Java应用程 ...
- chm文件突然乱码了
今天打开一个chm文件的帮组文档时,文档时乱码,以前可不是的哦.不知道自己干什么操作了.上网找了下解决办法. 打开cmd 输入regedit 进入注册表:找到: HKEY_CURRENT_USER\S ...
- windows下OpenSSL加密证书安装步骤与使用方法
OpenSSL加密证书一般用于签名认证,含私钥和公钥.在Linux系统中,OpenSSL一般是已经安装好了,可以直接使用.而在Windows系统中,是需要安装使用的. 最近在使用支付平台时,用到了Op ...
- PHP_Bibel阅读笔记(二)——脸黑的一天(?一年)
一早上起来把50包开了,一张橙卡...就问还有谁...........本命年啊,我去买红内裤还不行么.... 实时更新,老哥的号的30包什么都没有....不过中午又开了5包,皇帝,好评啊!!! 五.代 ...
- UVALive 4670 Dominating Patterns --AC自动机第一题
题意:多个模板串,一个文本串,求出那些模板串在文本串中出现次数最多. 解法:AC自动机入门模板题. 代码: #include <iostream> #include <cstdio& ...
- CH Round #52 还教室[线段树 方差]
还教室 CH Round #52 - Thinking Bear #1 (NOIP模拟赛) [引子]还记得 NOIP 2012 提高组 Day2 中的借教室吗?时光飞逝,光阴荏苒,两年过去了,曾经借教 ...
- BZOJ 2286 消耗战 (虚树+树形DP)
给出一个n节点的无向树,每条边都有一个边权,给出m个询问,每个询问询问ki个点,问切掉一些边后使得这些顶点无法与顶点1连接.最少的边权和是多少.(n<=250000,sigma(ki)<= ...
- 【转】Chrome 控制台不完全指南
原文出处: 刘哇勇的博客(@刘哇勇) 欢迎分享原创到伯乐头条 Chrome的开发者工具已经强大到没朋友的地步了,特别是其功能丰富界面友好的console,使用得当可以有如下功效: 更高「逼格」更快 ...