<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          GitletGit 的 JavaScript 實現(xiàn)

          聯(lián)合創(chuàng)作 · 2023-10-01 06:35

          Gitlet 是 Git 的 JavaScript 實現(xiàn)。支持 init, add, rm, commit, branch, checkout, diff, remote, fetch, merge, push, pull, statusclone 操作。

          下面命令解釋了 Gitlet 的工作過程:

          ~   $ git clone [email protected]: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 [email protected]:maryrosecook/gitlet.git
          $ cd gitlet
          $ npm install
          $ npm test
          瀏覽 19
          點贊
          評論
          收藏
          分享

          手機掃一掃分享

          編輯 分享
          舉報
          評論
          圖片
          表情
          推薦
          點贊
          評論
          收藏
          分享

          手機掃一掃分享

          編輯 分享
          舉報
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  老牛嫩草破苞视频A片 | 成人黄色视频网站 | 伊人伊人伊人伊人伊人 | 天堂网在线播放 | 欧美A√|