- Add
git-remote-sourc3to system PATH. For Windows it can be added via system settings, for Linux usingexport PATH=$PATH:/path/ - Setup beam node
- Setup beam wallet
- Setup beam wallet API
- Properly fill
sourc3-remote.cfg.--app-shader-fileshould be the full path forapp.wasmofgit-remote-sourc3. All paths should not contains quotes - Copy
sourc3-remote.cfgto$HOME/.sourc3on LinuxC:\Users\<user name>\.sourc3on Windows - Create new remote repository using SOURC3
beam-wallet shader --shader_app_file=app.wasm \
--shader_args="role=user,action=create_repo,repo_name=testrepo,cid=fda210a4af51fdd2ce1d2a1c0307734ce6fef30b3eec4c04c4d7494041f2dd10" \
--log_level=debug -n node_addresswhere wallet is beam-wallet, i. e. beam-wallet-dappnet; node_address -- node address, for example 127.0.0.1:10005.
8. Create local repository
mkdir testrepo
cd testrepo
git init
- Fill local repository with usual stuff
git add -A
git commit -m "Some commit message"
- Add git remote to the local repository. Use
sourc3://<user public key>/name_of_repo, wherename_of_repoequals name inrepo_nameshader arguments from step 7
git remote add origin sourc3://<user public key>/testrepo
- Push your changes
git push origin master:master
- Navigate to another directory
- Clone repository. Use the same address, as you used in 8
mkdir testrepo_clone
cd testrepo_clone
git clone -v "sourc3://<user public key>/testrepo" .