0

I set up an asp.net core project and right now I want to use a github repository which could be synchronized with my current project. Is any chance to commit all changes to a github repository without initialize a local repository for an existing project? Thanks.

5
  • 1
    Why do you want to do this? Git is designed as a distributed version control system—so you have a local repository and zero or more remotes, each of which is in some sense "equal". Commented Aug 14, 2018 at 16:44
  • Thank you for the explanation. Just felt online version control will be more secure if there is a system crash. Commented Aug 14, 2018 at 17:03
  • Security has nothing to do with it, and having a local repository does nothing to limit what's on GitHub. I strongly urge you to work with a local repository. There are countless benefits (again, this is how Git was designed to work). Even GitHub's official app creates local commits and then pushes them to GitHub. Commented Aug 14, 2018 at 17:06
  • You are right that nothing hurt if I keep a local repository, thank you! Commented Aug 14, 2018 at 17:25
  • Possible duplicate of Github API create commit Commented Aug 14, 2018 at 19:06

1 Answer 1

0

You can add each files manually to the github repo directly by uploading it. But why do you want to do such a thing.?

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks. Seems there is not a direct way to achieve this.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.