I created a new repo in my local pc: C:\Temp\RepoDemo which has the .git folder and a text file. What I am trying to do is create a server side folder and have the ability to push my local repo to the server so another user can pull it and either view it or edit and then push it back to the server.
To achieve that I installed SourceTree in my server and created a blank repo. I am trying to push my local repo to the server and I am getting the following error:
Rd8hT.png
The server setup is:
sOYlE.png
My main goal is to setup a folder in the server1
server to store all repositories created and user can pull/push/commit based on the remote
location connected.
The clean way to achieve this is to
It sounds like you are trying to push an new repository to an existing remote repository without cloning or checking out from the remote first. That would explain the errors you are getting, which are trying to prevent you from overwriting existing history with commits that are in no way connected to existing commits.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the reply. I am pretty much trying to create a new repo in local PC and wanting to push the same repo in the server, so another user from a different machine can download it and make changes and push the changes. Am I doing it wrong? Am I using the wrong product?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.