How to upload code on Github | upload existing project | simple git commands
This is a super simple way on how to upload your existing code to a Github repository. A repository is basically just a folder stored on Github, which is always available to you. Like putting your code in Dropbox.
And here is another awesome thing about Github - it comes with version control!
This means you can see previous commits and compare them to what you got right now.
What's the point of that you say?
Let's say you wanted to explore a new feature for your project and it was a HUGE MISTAKE. What do you do - go.
With Git this becomes like an everyday task. Something didn't work out - better revert my changes I guess. And boom! We're back to where we started before we went into the rabbit hole.
We will make our brand new repository on Github and make sure we set the correct origin in our terminal so it knows where to send our code when we push it out. Make sure that all the Git commands are made in your project directory. It's tracking your files, so we want it to track the correct files.
The fundamental Git commands we will use in this video are:
- git add .
- git commit -m "Your commit message here"
- git push
These commands, with a couple more, are 20% of Git that does 80% of the work. And knowing how to use them will get you a long way.
To use Git in your terminal you need to download it.
Download link: https://git-scm.com/downloads
The wizard asks you about a bunch of technical stuff, that I usually just click next on, but do it on your own risk.
It comes with its very own terminal called Git bash.
To connect your project to your Github, you need to do a command in your terminal while pointing to your project directory. This command is git init and it will make Git start tracking the files in your project.
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «How to upload code on Github | upload existing project | simple git commands», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.