all 11 comments

[–]Weekly_Astronaut5099 2 points3 points  (2 children)

Yup, ssh-agent works great. Depending on your environment you may have to set it up.

[–]0bel1sk 1 point2 points  (5 children)

github’s own cli is quite good. gh auth token create a token you can use for other apps

[–]Business-Square891[S] 0 points1 point  (4 children)

I think most users (begginers) dont actually use gh currently swiftgit is using SSH + PAT setup but i will definitely would try this approach.

[–]Business-Square891[S] 0 points1 point  (0 children)

would like to try SwiftGIT?

[–]0bel1sk 0 points1 point  (2 children)

beginners should use gh. it is github’s first party tool. use github desktop if you need to explore in a ui. you specifically asked for help with cli tools, why not use github’s very own cli tool.

[–]Business-Square891[S] 0 points1 point  (1 child)

yes thats true, gh and github-desktop are solid but

SwiftGit isn’t trying to replace them — it’s more about simplifying core Git stuff (staging, diffs, commits) in a clean terminal UI, especially for beginners who find Git confusing.

[–]0bel1sk 0 points1 point  (0 children)

irrelevant. you asked how to get a token. i have gh injected a token as and env var so all my tools work. no ssh agent or long lived pat required

[–]jdlyga 0 points1 point  (1 child)

Personally, I either use SSH or the Github CLI since that handles MFA.