Skip to content

Instantly share code, notes, and snippets.

@lidgnulinux
Created January 4, 2026 11:28
Show Gist options
  • Select an option

  • Save lidgnulinux/6e1cd34a742739af4c9fefad5942bc0c to your computer and use it in GitHub Desktop.

Select an option

Save lidgnulinux/6e1cd34a742739af4c9fefad5942bc0c to your computer and use it in GitHub Desktop.
My attempt to do darcs basic stuffs.

Darcs

Requirements

  • ssh (I'm using 10.2p1 version).
  • darcs (I'm using 2.18.5 version).
  • text editor.

Steps

  1. Create ssh private key !

    $ ssh-keygen -t rsa -f ~/.ssh/darcshubkey
    
  2. Add these lines to ssh config (e.g. ~/.ssh/config) !

    Host hub.darcs.net
     IdentityFile ~/.ssh/darcshubkey
     User <USERNAME>
     ControlMaster no
     ForwardAgent no
     ForwardX11 no
     Ciphers +aes256-cbc
     MACs +hmac-sha1
     PubkeyAcceptedKeyTypes ssh-rsa
     HostKeyAlgorithms ssh-rsa
     KexAlgorithms curve25519-sha256@libssh.org
    
  3. Create darcs account and a simple repository !

  4. Go to settings and paste your ~/.ssh/darcshubkey.pub !

  5. Get a copy of the repository !

    $ darcs get your_name@hub.darcs.net:your_repo
    
  6. Create a simple file to test !

    $ cd your_repo && touch file.txt
    
  7. Add your file, commit it, and push it to remote repository !

    $ darcs add file.txt
    $ darcs record -m "your message."
    $ darcs push your_name@hub.darcs.net:your_repo
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment