Telegram Group & Telegram Channel
​​DeepGit: HEAD

Забыл в последней статье упомянуть про HEAD.
В файле .git/HEAD лежит ссылка на рефернс.

 09:32:21 in tmp/git_/first on  master •99%
➜ cat .git/HEAD
ref: refs/heads/master


С помощью команды

 git symbolic-ref HEAD refs/heads/<branch_name>


Можно ставить HEAD.

Теперь можно полностью понять как работает git checkout <branch> .

  cat .git/HEAD
cat <ref_path>
git cat-file -p <commit_hash>
git cat-file -p <tree_hash>


И дальше уже проходим по blob-ам, и записываем туда версии.

P.S Это весьма топорная реализация git checkout , на самом деле все работает немного иначе.
Впереди нас еще ждет статья про pack файлы и про то, как git оптимизирует хранение файлов.



tg-me.com/developer_tools/254
Create:
Last Update:

​​DeepGit: HEAD

Забыл в последней статье упомянуть про HEAD.
В файле .git/HEAD лежит ссылка на рефернс.

 09:32:21 in tmp/git_/first on  master •99%
➜ cat .git/HEAD
ref: refs/heads/master


С помощью команды

 git symbolic-ref HEAD refs/heads/<branch_name>


Можно ставить HEAD.

Теперь можно полностью понять как работает git checkout <branch> .

  cat .git/HEAD
cat <ref_path>
git cat-file -p <commit_hash>
git cat-file -p <tree_hash>


И дальше уже проходим по blob-ам, и записываем туда версии.

P.S Это весьма топорная реализация git checkout , на самом деле все работает немного иначе.
Впереди нас еще ждет статья про pack файлы и про то, как git оптимизирует хранение файлов.

BY Dev Tools


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/developer_tools/254

View MORE
Open in Telegram


Dev Tools Telegram | DID YOU KNOW?

Date: |

Telegram auto-delete message, expiring invites, and more

elegram is updating its messaging app with options for auto-deleting messages, expiring invite links, and new unlimited groups, the company shared in a blog post. Much like Signal, Telegram received a burst of new users in the confusion over WhatsApp’s privacy policy and now the company is adopting features that were already part of its competitors’ apps, features which offer more security and privacy. Auto-deleting messages were already possible in Telegram’s encrypted Secret Chats, but this new update for iOS and Android adds the option to make messages disappear in any kind of chat. Auto-delete can be enabled inside of chats, and set to delete either 24 hours or seven days after messages are sent. Auto-delete won’t remove every message though; if a message was sent before the feature was turned on, it’ll stick around. Telegram’s competitors have had similar features: WhatsApp introduced a feature in 2020 and Signal has had disappearing messages since at least 2016.

Telegram has exploded as a hub for cybercriminals looking to buy, sell and share stolen data and hacking tools, new research shows, as the messaging app emerges as an alternative to the dark web.An investigation by cyber intelligence group Cyberint, together with the Financial Times, found a ballooning network of hackers sharing data leaks on the popular messaging platform, sometimes in channels with tens of thousands of subscribers, lured by its ease of use and light-touch moderation.Dev Tools from in


Telegram Dev Tools
FROM USA