Git: Difference between revisions
Jump to navigation
Jump to search
Created page with "You actually don't need a software package like github or gitlab to host your own repositories, if the command line is good enough for you, all you need is git itself and a remote machine that you can ssh into. You simply git init --bare on the host and on the local you git init and then set the remote location with git remote set-url remoteip:path/to/repo then you can push from local with git push --set-upstream origin master and then you're set and can use it norm..." |
No edit summary |
||
Line 1: | Line 1: | ||
=== msgsb git === | |||
Current status of git working on 108 server. These commands work as of Apr 10, 2024 on existing repos. Trying to work out how to make a new repo | |||
<code>git ls-remote "<nowiki>ssh://mhamilton@msgsb.com:101/home4/git/srv/git/GpioTest.git</nowiki>"</code> | |||
<code>git clone "<nowiki>ssh://mhamilton@msgsb.com:101/home4/git/srv/git/GpioTest.git</nowiki>"</code> | |||
=== General === | |||
You actually don't need a software package like github or gitlab to host your own repositories, if the command line is good enough for you, all you need is git itself and a remote machine that you can ssh into. | You actually don't need a software package like github or gitlab to host your own repositories, if the command line is good enough for you, all you need is git itself and a remote machine that you can ssh into. | ||
Revision as of 16:28, 10 April 2024
msgsb git
Current status of git working on 108 server. These commands work as of Apr 10, 2024 on existing repos. Trying to work out how to make a new repo
git ls-remote "ssh://mhamilton@msgsb.com:101/home4/git/srv/git/GpioTest.git"
git clone "ssh://mhamilton@msgsb.com:101/home4/git/srv/git/GpioTest.git"
General
You actually don't need a software package like github or gitlab to host your own repositories, if the command line is good enough for you, all you need is git itself and a remote machine that you can ssh into.
You simply
git init --bare
on the host and on the local you
git init
and then set the remote location with
git remote set-url remoteip:path/to/repo
then you can push from local with
git push --set-upstream origin master
and then you're set and can use it normally from your command line.