Part 5 - Pushing to GitHub [Git-ing Started with Git Series]
Now that we know how to make commits, its time to push those somewhere safe and practical. GitHub is basically a developers best friend and can safely store all of our git repos. It also is a great way to share code.
GitHub.com is a social network for developers. It not only allows us to share code, but we can follow each others repos for updates, submit updates ourselves, download each others code and so much more. Every developer needs a GitHub account so you might as well start today.
Free accounts are good for most people. Paid accounts are only if you plan to store private repositories online. They are $7 a month and get unlimited repos. Its a pretty good deal.
To push our code to github we must first learn the “git remote add” functionality. This adds a url in our project config file. It is only for this one file, so you will need to set URLs for every project. Once we add the remote URL and name it (in this case, origin) then we can push it.
The first time we push we will use the -u command to save it as our new default push settings. In the future you might have multiple branches and multiple URLs saved in a project folder, so setting GitHub as your default push is a good idea. You don’t want to accidentally push to production.
Coming Up:
We clone (copy) and fork projects from github to our computer.
-- CODE SNIPPETS ---
Add a New Repo URL to our Project
git remote add origin url.com
Push the Repo to GitHub
git push -u origin master
After the First Push, We can Push Default:
git push
--- MORE FROM THIS SERIES ---
Previous Video [Part 4]: https://youtu.be/0WfDe51pUU0
Next video [Part 6]: Coming Soon
Full Playlist for the "Git-ing Started with Git" Series:
https://www.youtube.com/playlist?list=PLwAKR305CRO-fenwcN2-IC0rgaB6vaJgD
--- FOLLOW ME ---
Subscribe for New Releases!
Twitter - http://twitter.com/_jacurtis
(ask me questions!)
--- QUESTIONS? ---
Leave a comment below and I or someone else can help you.
For quick questions you may also want to ask me on Twitter, I respond almost immediately.
Email me [email protected]
Thanks for all your support!
---
Tags: Git basics and learning git tutorial. Best tutorial git easiest tutorial git. Git on Mac, Linux, Windows. Tutorials with Alex, devmarketer
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Part 5 - Pushing to GitHub [Git-ing Started with Git Series]», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.