All links of one day
in a single page.
<Previous day - Next day>

rss_feedDaily RSS Feed
floral_left The Daily Shaarli floral_right
——————————— February 20, 2014 - Thursday 20, February 2014 ———————————
octet - bit - byte - si -

Pour remettre les choses au clair : kilo/mega/giga != kibi/mebi/gibi

Création de deux fichiers : un de 1000 octets et un de 1024 octets

[16:34:57] arnaud@mac : ~
$ dd if=/dev/urandom of=/tmp/test bs=1 seek=1000 count=0

[16:35:12] arnaud@mac : ~
$ dd if=/dev/urandom of=/tmp/testsi bs=1 seek=1024 count=0

[16:35:16] arnaud@mac : ~
$ ls -l /tmp/test*
-rw-rw-r-- 1 arnaud arnaud 1000 févr. 20 16:35 /tmp/test
-rw-rw-r-- 1 arnaud arnaud 1024 févr. 20 16:35 /tmp/testsi

[16:35:26] arnaud@mac : ~
$ ls -lh /tmp/test*
-rw-rw-r-- 1 arnaud arnaud 1000 févr. 20 16:35 /tmp/test
-rw-rw-r-- 1 arnaud arnaud 1,0K févr. 20 16:35 /tmp/testsi

On peut voir que ls compte en kibi et non en kilo. Pour avoir de "vrais" kilo, il faut ajouter --si

[16:35:20] arnaud@mac : ~
$ ls -lh --si /tmp/test*
-rw-rw-r-- 1 arnaud arnaud 1,0k févr. 20 16:35 /tmp/test
-rw-rw-r-- 1 arnaud arnaud 1,1k févr. 20 16:35 /tmp/testsi

git - branch -

Before you can start working locally on a remote branch, you need to fetch it as called out in answers below.

To fetch a branch, you simply need to:

git fetch origin

This will fetch all of the remote branches for you. With the remote branches in hand, you now need to check out the branch you are interested in, giving you a local working copy:

git checkout -b test origin/test

ou : git checkout -t origin/test

-