Hosting a Git Repo on Redbrick: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 51: Line 51:
(the little ascii art bit might not show up on older versions of SSH).
(the little ascii art bit might not show up on older versions of SSH).


This has created two files on your computer - id_ed25519 and id_ed25519.pub. id_25519 is your '''private''' SSH key, and id_25519.pub is the corresponding public key. You keep id_25519 to yourself, and you can give id_25519.pub to admins to allow you to access a repository. You can also upload it to a remote server (like redbrick) and put it in a specific location to allow you passwordless logins, but you can google for how to do that.
This has created two files on your computer - id_ed25519 and id_ed25519.pub. id_25519 is your '''private''' SSH key, and id_ed25519.pub is the corresponding public key. You keep id_ed25519 to yourself, and you can give id_ed25519.pub to admins to allow you to access a repository. You can also upload it to a remote server (like redbrick) and put it in a specific location to allow you passwordless logins, which you can learn how to do at [[SSH-Keys]].




Line 67: Line 67:
   git push origin master:refs/heads/master
   git push origin master:refs/heads/master


''Things to look out for:'' When you're doing the "git remote add origin" command, make sure you add ".git" to the end of the repository name. The system that redbrick uses (called Gitea, if anybody cares) to manage repositories needs that there. Also, in "git@git.redbrick.dcu.ie", the "git" user isn't a placeholder. You need use that user, not your own redbrick username.
''Things to look out for:'' When you're doing the "git remote add origin" command, make sure you add ".git" to the end of the repository name. The system that redbrick uses (called Forgejo, if anybody cares) to manage repositories needs that there. Also, in "git@git.redbrick.dcu.ie", the "git" user isn't a placeholder. You need use that user, not your own redbrick username.

Navigation menu