GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

panel 1: you might expect git to enforce some rules about branches some rules you might imagine: * you can't remove commits from a branch, only add them * the `main` branch has to stay more less in sync with `origin/main` But there are no rules. git character with demon hat: "want to do something horrible to your branch? no problem! " panel 2: there are literally no rules commands that you can use to do weird stuff to a branch: * git reset * git rebase panel 3: instead of rules, we have conventions for example: * run `git pull` often to keep your `main` up to date * if you're working with a big team, don't commit to `main` directly git demon: "you've just gotta be really careful to not do the wrong thing and not mess up your branch" person with curly hair: "um... thanks?" panel 4: our only saviour: the reflog git reflog BRANCHNAME will show you the history of every change to the branch, so you can always undo the reflog is a VERY unfriendly UI, but it's always there.

Download link

https://cdn.masto.host/socialjvnsca/media_attachments/files/111/567/963/889/958/233/original/6c8f6bf71c17ab3b.png

Notices where this attachment appears

  1. Embed this notice
    Julia Evans (b0rk@social.jvns.ca)'s status on Sunday, 07-Jan-2024 19:50:02 JST Julia Evans Julia Evans

    git branches have no rules

    permalink: https://wizardzines.com/comics/branches-have-no-rules/

    In conversation Sunday, 07-Jan-2024 19:50:02 JST from social.jvns.ca permalink
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.