I have a local Git repository setup on my laptop. I would like to push it to my desktop.
How can I do that?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you have access to a shared directory, you can (see
git cloneandgit remote):That will create a bare repo, referenced in your local repo as “desktop”.
Since it is bare, you can push to it (as well as pull from it if needed)
As the ProGit book mentions, git does support the file protocol: