top right user icon→settings→ssh and GPG keys → new ssh key
Github (the source forge) speaks but is not git (the local-first distributed source control management software)! See Git for using the git command line tool.
See Zenodo DOI for creating a DOI for your code hosted on Github.com.
Github setup includes
git@github.com:group/repo (instead of https://github.com/group/repo)cd to the right directory before running git commandsssh-keygen only once per user@server. don't run if existing ~/.ssh/id*.pubIf you have an existing directory you want to put on github, DO NOT generate a readme when creating the github repository. Instead, use the Existing Repo section below instead.
http://github.com/new or Home > green new repo
Follow the instructions github provides be sure to cd into the code directory before running git commands cd my-exsiting-data/ # go to the directory of your existing code git remote add origin git@github.com:$USER/$REPONAME git push -u origin main
To get existing code onto your local workstation or server environment, run git clone to create a new local directory with the remote code.
<> Code button > Local Tab > SSH header.git clone git@github.com/$USER/$REPO
Find github instructions on connecting-to-github-with-ssh.
For git push to github, you'll need some way to confirm your credentials. Authentication can happen with ssh keys (recommended) or an app password
when using ssh keys (recommended) use git@github.com:group/repo (repo url) to use ssh-key based authentication – on the terminal you can
switch from https to ssh using vim .git/config.
git push can use ssh authentication unique to a user and computer pair. You need a key likely in ~/.ssh/id_ed25519.pub.
Contents of ~/.ssh/id_ed25519.pub should be pasted into new ssh key modal on https://github.com/settings/keys 1)
cat ~/.ssh/id_ed25519.pub
If ~/.ssh/id_ed25519.pub doesn't exist, ssh-keygen can make it (use empty password for convenience. hit enter at password prompt to leave blank). See more documentaiton on github
ssh-keygen only needs to be run once per user per computer. Do not rerun if any ~/.ssh/id*.pub file exists – you risk deleting your key
To push to https (vs ssh like git@) repos, you'll need to use a personal authentication token when prompted for a password. See github's documentation
top right user icon→settings→ssh and GPG keys → new ssh key