How to push an existing git repository from the command line | Git & GitHub
Create a new git repository on the command line
echo "# moviedb" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/dabananda/moviedb.git
git push -u origin main
Push an existing git repository from the command line
git remote add origin https://github.com/dabananda/moviedb.git
git branch -M main
git push -u origin main
What Is Git
First created back in 2005, Git is a very famous adaptation control framework that is at the core of a wide assortment of high-profile projects. Git is introduced and kept up with on your neighborhood framework (instead of in the cloud) and provides you with an independent record of your continuous programming renditions. It tends to be utilized totally selective of any cloud-facilitating administration - you don't require web access, but to download it.
Contrasted with other variant control frameworks, Git is responsive, simple to utilize, and reasonable (free, in fact). Git is additionally extraordinarily intended to function admirably with text documents - which, looking at this logically, is the thing code really is. In any case, one thing that truly separates Git is its stretching model. Expanding permits you to make free nearby offices in your code. This implies you can evaluate novel thoughts, put away branches for creative work, hop back to prior branches, effectively erase union, and review branches at the snap of a button.
What's more, that is all there is to it. Git is an excellent rendition control framework. However, shouldn't something be said about GitHub?
What Is GitHub
In the conversation of Git versus GitHub, it's been said that GitHub is to Git what Facebook is to your real face. What's that mean? Indeed, it really intends that Facebook is similar to a web-based face data set (of sorts). GitHub is planned as a Git store facilitating administration.
Also, what precisely is a Git store facilitating administration? A web-based data set permits you to monitor and share your Git variant control projects outside of your neighborhood PC/server. Not at all like Git, GitHub is solely cloud-based. Additionally dissimilar to Git, GitHub is a for-benefit administration (albeit essential storehouse facilitating highlights are accessible at no expense for the individuals who will make a client profile, settling on GitHub a well-known decision for open-source projects).
That is on the grounds that, as well as offering the elements in general and benefits of Git, GitHub develops Git's fundamental usefulness. It presents an incredibly instinctive, graphically addressed UI, and furnishes developers with work in charge and errand the board instruments. Extra elements can be carried out by means of the GitHub Marketplace administration. Furthermore, in light of the fact that GitHub is cloud-based, a singular's Git storehouses can be remotely gotten to by any approved individual, from any PC, anyplace on the planet (given it has a web association).
Through GitHub, you can impart your code to other people, enabling them to make modifications or alters on your different Git branches. This makes it feasible for whole groups to facilitate together on single activities continuously. As changes are presented, new branches are made, permitting the group to keep on overhauling the code without overwriting each other's work. These branches are like duplicates, and changes made on them don't reflect in the primary indexes on other clients' machines except if clients decide to push/pull the progressions to join them. There is likewise a GitHub work area application accessible, which offers some extra usefulness for experienced engineers.
Other Git storehouses facilitating administrations additionally exist; GitLab, BitBucket, and SourceForge are altogether reasonable GitHub choices, and GitLab even offers an implicit choice that permits GitHub clients to relocate their activities straightforwardly into GitLab.
Git vs. GitHub
Considering that coding depends so intensely on precise punctuation, the naming show encompassing programming dialects and assets is everything except instinctive. Java and JavaScript are similarly firmly related as ham and hamster, and Python's logo might be a picture of interlaced snakes, yet it's really named after the Monty Python sketch satire bunch. HTML and CSS are abbreviations that portray what the code really is or does (HyperText Markup Language and Cascading Style Sheets, individually), while C++ depicts its starting points. Furthermore, that is just starting to expose what's underneath.
In this way, for somebody first finding out about Git versus GitHub, the clear association may not be so obvious.
Find me on
GitHub: https://github.com/dabananda LinkedIn: https://www.linkedin.com/in/dabanandamitra/ Dev: https://dev.to/dabanandamitra Medium: https://medium.com/@dabanandamitra Twitter: https://twitter.com/dabanandamitra Instagram: https://www.instagram.com/dabananda.mitra/ Facebook: https://www.facebook.com/dabananda.mitra.98/