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

妙趣横生的算法(C++语言实现)

妙趣横生的算法(C++语言实现)

胡浩 / 清华大学出版社 / 2014-10-1 / 59.80元

《妙趣横生的算法(C++语言实现)》内容丰富,生动有趣,寓教于乐,旨在帮助读者学习数据结构和算法的相关知识,从而开阔眼界,培养编程兴趣,提高编程能力,增强求职的竞争力。如果您想提高自己对算法和数据结构的理解能力,在程序设计之路上走得更远,那么请翻开《妙趣横生的算法(C++语言实现)》,仔细研读吧,它将助您一臂之力。 《妙趣横生的算法(C++语言实现)》以通俗易懂的语言深入浅出地介绍了常用的数......一起来看看 《妙趣横生的算法(C++语言实现)》 这本书的介绍吧!

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具

Markdown 在线编辑器
Markdown 在线编辑器

Markdown 在线编辑器

html转js在线工具
html转js在线工具

html转js在线工具