Git Setup

Summary

This note explains the Fedora SWAY Atomic specific side of Git setup. The general Git workflow lives in the Git category, while this note focuses on where Git should live on Atomic and what is different about that environment.

Why this matters

  • on Fedora Atomic, the installation layer matters as much as the commands themselves
  • Git is usually better placed in Toolbox than directly on the host
  • keeping the Atomic host clean is part of the workflow, not just a technical detail

Environment / Scope

ItemValue
PlatformFedora SWAY Atomic
Main toolsgit, toolbox, rpm-ostree, wl-copy
Best use for this noteGit setup specifically on Atomic
Recommended layerToolbox
Safe to test?yes, in a lab

Key concepts

  • Toolbox-first approach - best default for Git and related CLI tooling on Atomic
  • Host install - possible, but more intrusive and usually not needed for routine work
  • Atomic-specific convenience - tools like wl-copy are useful for local clipboard-based workflows

Steps / Workflow

Install Git inside Toolbox:

toolbox create -c dev
toolbox enter dev
sudo dnf install -y git openssh-clients wl-clipboard

Host install only if you intentionally need it

sudo rpm-ostree install git wl-clipboard
systemctl reboot

Atomic-specific notes

  • toolbox is usually the cleanest home for Git on this platform
  • wl-copy is useful for copying the public SSH key to the clipboard
  • installing Git directly on the host should be a deliberate exception, not the default habit

Verification

CheckExpected result
Toolbox workflow worksyou can enter Toolbox and run Git there
Host remains cleanGit is not layered on the host unless intentionally chosen
Clipboard helper workswl-copy is available when needed

Verification commands:

toolbox enter dev
git --version
wl-copy --help

Pitfalls / Troubleshooting

ProblemLikely causeWhat to check
Git is missinginstalled in the wrong layer or not installed at allToolbox vs host, git --version
Clipboard step failswl-copy is not installedpackage install inside Toolbox or host
Host became clutteredGit was layered onto the host unnecessarilywhether host install was actually needed

Common beginner trap

On Atomic, the default answer should usually be “put it in Toolbox first” unless you have a strong reason to change the host.

Key takeaways

  • the general Git workflow is the same, but the right installation layer is different on Atomic
  • Toolbox is usually the cleanest place for Git
  • this note is Atomic-specific; the general setup flow lives in the main Git section

Official documentation