- ssh (I'm using 10.2p1 version).
- darcs (I'm using 2.18.5 version).
- text editor.
-
Create ssh private key !
$ ssh-keygen -t rsa -f ~/.ssh/darcshubkey -
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 -
Create darcs account and a simple repository !
-
Go to settings and paste your ~/.ssh/darcshubkey.pub !
-
Get a copy of the repository !
$ darcs get your_name@hub.darcs.net:your_repo -
Create a simple file to test !
$ cd your_repo && touch file.txt -
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