Git 的 JavaScript 实现 Gitlet

码农软件 · 软件分类 · Git开源工具 · 2019-11-04 16:43:13

软件介绍

Gitlet 是 Git 的 JavaScript 实现。支持 init, add, rm, commit, branch, checkout, diff, remote, fetch, merge, push, pull, statusclone 操作。

下面命令解释了 Gitlet 的工作过程:

~   $ git clone git@github.com:maryrosecook/gitlet.git
~   $ alias gitlet='node ~/gitlet/gitlet.js'

~   $ mkdir a
~   $ cd a
~/a $ gitlet init

~/a $ echo first > number.txt
~/a $ gitlet add number.txt
~/a $ gitlet commit -m "first"
      [master 2912d7a2] first

~/a $ cd ..
~   $ gitlet clone a b

~   $ cd b
~/b $ echo second > number.txt
~/b $ gitlet add number.txt
~/b $ gitlet commit -m "second"
      [master 484de172] second

~   $ cd ../a
~/a $ gitlet remote add b ../b
~/a $ gitlet fetch b master
      From ../b
      Count 6
      master -> b/master
~/a $ gitlet merge FETCH_HEAD
      Fast-forward

~/a $ gitlet branch other
~/a $ gitlet checkout other
      Switched to branch other

~/a $ echo third > number.txt
~/a $ gitlet add number.txt
~/a $ gitlet commit -m "third"
      [other 656b332d] third

~/a $ gitlet push b other
      To ../b
      Count 9
      other -> other

使用 Gitlet 之前应该先安装 Node.js ,然后:

$ git clone git@github.com:maryrosecook/gitlet.git
$ cd gitlet
$ npm install
$ npm test

本文地址:https://codercto.com/soft/d/18263.html

大教堂与集市

大教堂与集市

[美] Eric S. Raymond / 卫剑钒 / 机械工业出版社 / 2014-5 / 59.00元

当代软件技术领域最重要的著作,中文版首次出版! 《大教堂与集市》是开源运动的《圣经》,颠覆了传统的软件开发思路,影响了整个软件开发领域。作者Eric S. Raymond是开源运动的旗手、黑客文化第一理论家,他讲述了开源运动中惊心动魄的故事,提出了大量充满智慧的观念和经过检验的知识,给所有软件开发人员带来启迪。本书囊括了作者最著名的“五部曲”,并经过作者的全面更新,增加了大量注释,提高了可读......一起来看看 《大教堂与集市》 这本书的介绍吧!

URL 编码/解码
URL 编码/解码

URL 编码/解码

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具