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的更多相关文章

  1. git版本控制管理实践-4

    vcs: version control system 版本控制系统 local vcs, 集中式版本控制系统: centralized vcs; 分布式vcs: distributed vcs Lo ...

  2. git版本控制管理实践-2

    给网站设置一个 "根目录下的logo.ico", 还是很有必要的,比如赶集网,这时在 "历史"搜索时, 就可以根据 网站的 logo.ico 很轻松的就能够找到 ...

  3. Git 版本控制管理(二)

    Git 分支管理 1. 概念 我们来抽象的理解,分支就是科幻电影里面的平行宇宙,当你正在电脑前努力学习Git的时候,另一个你正在另一个平行宇宙里努力学习SVN.如果两个平行宇宙互不干扰,那对现在的你也 ...

  4. 利用Git版本控制管理你的项目

    准备工作 项目创建完成后,将项目版本控制起来,今后每个版本的迭代会非常清楚,同时也有助于项目进行协同开发. 还有一个十分重要的问题是:项目上线后,线上的运行的程序的配置与线下进行测试的配置文件是不一样 ...

  5. Git版本控制管理学习笔记1-介绍

    几乎所有的版本控制工具都是出于同样的目的:开发以及维护开发出来的代码,方便读取代码的历史,记录所有的修改.这里,介绍的是当前在开源社区内非常流行的版本控制工具Git.它是由Linus Torvalds ...

  6. Git版本控制管理教程(一):介绍

    我的个人博客地址:damienzhong.com 原文链接:点击打开链接 1.1 背景 数据是短暂的,且容易丢失的,特别是作为开发人员的我们每天频繁的对项目代码进行更新,容易产生错误代码的变更或者项目 ...

  7. Git 版本控制管理(一)

    Git 是一个分布式版本控制工具,它的作者 Linus Torvalds 是这样给我们介绍 Git  —— The stupid content tracker(傻瓜式的内容跟踪器) 关于 Git 的 ...

  8. Git版本控制管理学习笔记4-文件管理和索引

        可以认为使用Git时,我们会遇到3个空间:工作目录.索引.版本库.我们关心的,就是在新建.修改等操作时,这三者之间发生了怎样的变化.     笼统的讲,就是在工作目录下编辑,在索引中积累修改, ...

  9. Git版本控制管理学习笔记3-基本的Git概念

    为了更近一步的学习和理解Git的理念,这一节介绍一下Git中的一些基本概念. 基本概念 对象库图示 Git在工作时的概念 一.基本概念: 1.版本库:     Git的版本库就是一个简单的数据库,其中 ...

随机推荐

  1. android 实现点击listview 空白地方隐藏菜单

    思路:重写ListView的setOnTouchListener事件: ListView.setOnTouchListener(new OnTouchListener(){ @Override pub ...

  2. Maven设置代理服务器

    在setting.xml中设置以下信息即可,请修正对应信息 <proxies> <proxy> <id>optional</id> <active ...

  3. 通过RTMP play分析FLV格式详解

    最近做了一个rtmp中转服务程序,通过实践,熟悉rtmp play和push中各类格式,这里总结一下. 程序github地址: https://github.com/runner365/rtmp_re ...

  4. MMORPG大型游戏设计与开发(服务器 AI 概述)

    游戏世界中我们拥有许多对象,常见的就是角色自身以及怪物和NPC,我们可以见到怪物和NPC拥有许多的行为,比如说怪物常常见到敌对的玩家就会攻击一样,又如一些NPC来游戏世界中走来走去,又有些怪物和NPC ...

  5. github 和 github for windows 学习使用总结

    github 是最大的开源项目托管平台,是一个网站.但是它不仅仅只能托管开源项目或代码,还能作为我们备份重要资料的平台,更重要的是我们可以通过这个平台来学习和获取别人的代码,避免重复造轮子,还可以多人 ...

  6. hadoop安装

    环境 RedHad Linux9.0  java6   hadoop1.2.1 hadoop下载地址:http://mirror.bit.edu.cn/apache/hadoop/common/ 版本 ...

  7. Hibernate对象标识符

    Hibernate提供的内置标识符生成器 Java语言按内存地址来识别或区分同一个类的不同对象,而关系数据库按主键来识别或区分同一个表的不同记录.Hibernate使用OID(对象标识符)来统一两者之 ...

  8. 提高Axure设计效率的10条建议

    http://www.woshipm.com/ucd/92153.html Axure 是创建软件原型的快速有力的工具.上手很容易,但是,其中存在一个危险.这款软件是如此的直观以至于很多用户可以在没有 ...

  9. C#.NET 大型通用信息化系统集成快速开发平台 4.1 版本 - 忘记密码功能改进、手机短信、电子邮件

    由于我们的系统接近有100000个用户账户,经常会有忘记密码的时候,用户多了,很小的一个功能,每天都会有很多人在用,每个功能都非常友善,会提高提系统的效率,提高用户体验. 一天最多能返回3次手机短信, ...

  10. flask+sqlite3+echarts3+ajax 异步数据加载

    结构: /www | |-- /static |....|-- jquery-3.1.1.js |....|-- echarts.js(echarts3是单文件!!) | |-- /templates ...