Editing
Git
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== 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 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. === Mirroring a repository === Open Git Bash. Create a bare clone of the repository. git clone --bare https://github.com/EXAMPLE-USER/OLD-REPOSITORY.git Mirror-push to the new repository. cd OLD-REPOSITORY.git git push --mirror https://github.com/EXAMPLE-USER/NEW-REPOSITORY.git Remove the temporary local repository you created earlier. cd .. rm -rf OLD-REPOSITORY.git
Summary:
Please note that all contributions to SoftwareGuy may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
SoftwareGuy:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
Edit source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information