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.
-
1Why 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".Chris– Chris2018-08-14 16:44:29 +00:00Commented 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.Amy Zeng– Amy Zeng2018-08-14 17:03:42 +00:00Commented 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.Chris– Chris2018-08-14 17:06:10 +00:00Commented Aug 14, 2018 at 17:06
-
You are right that nothing hurt if I keep a local repository, thank you!Amy Zeng– Amy Zeng2018-08-14 17:25:10 +00:00Commented Aug 14, 2018 at 17:25
-
Possible duplicate of Github API create commitphd– phd2018-08-14 19:06:13 +00:00Commented Aug 14, 2018 at 19:06
Add a comment
|