High level overview of the workflow you’ll probably grow to know and love whilst using Git and GitHub

First of all, read this to gain an understanding of the concepts involved in version control:
http://guides.beanstalkapp.com/version-control/intro-to-version-control.html

Having read the above, you should now understand that Git is s distributed VCS (version control system). You should understand that each project you work on is stored in a repository, and that everyone working on a project will have a copy of the repository (Git calls these clones) on their local computer. There is also a copy of the repository on the GitHub website.

When you begin working on a project you’ll usually use the GitHub website to create a git repository and then CLONE that repository onto your computer. Alternatively you can create a repository and then PUSH it up to the GitHub website.

If you begin working on an existing project you’ll simply CLONE the repository onto your local computer.

Either way, you’ll now have a local repository that you can use to work on the project.

Once you have made changes to files, you need to COMMIT them to your local repository. You should commit often, with a message explaining the changes you’ve made. This’ll be useful should you need to revert a change at a later date as you’ll be able to find the commit easier. It also helps others understand the reasons behind the changes you’ve made.

When you are ready for other people working on the project to see your changes you need to copy them back up to GitHub. Git calls this PUSH. So, in other words you need to PUSH your commits to GitHub.

Once you have PUSHed, others can then copy them from GitHub into their own copy of the repository. This is called PULL.

So, what happens if someone PUSHes changes to a file you’re already working on? Well, when you come to PUSH, Git won’t allow you to do so and will ask you to PULL changes from the server so that your files can be merged together. When you next PULL you’ll be prompted to MERGE the two files and then COMMIT the merge result. You’ll then be able to PUSH to GitHub.

Lastly, if you’re likely to be working on the site for an extended period of time (like a couple of days or weeks) and don’t want your changes to be put onto the example.com site, you should still use the COMMIT and PUSH workflow, but you should create a BRANCH first. This means that your code is still being backed up to a secure location and you won’t lose your work should your computer get stolen or blow up or something. It also means the main line of development (called MASTER) remains untouched until you MERGE your BRANCH.

1,783 thoughts on “High level overview of the workflow you’ll probably grow to know and love whilst using Git and GitHub

  1. Готовьте вкусно https://eqa.ru у нас — рецепты на любой вкус: мясные вегетарианские диетические сладкие и острые. Пошаговые фото время приготовления и секреты идеального блюда.

  2. Новости обзоры тест-драйвы ремонт и эксплуатация автомобилей https://5go.ru/

  3. Актуальные новости https://komandor-povolje.ru — политика экономика общество культура и события стран постсоветского пространства Европы и Азии. Объективно оперативно и без лишнего — вся Евразия в одном месте.

  4. Амбениум парентерал ambenium.ru/ – снимает боль жар и воспаление при травмах артритах невралгиях и простуде. Быстрый эффект надёжное действие проверенная формула.

  5. Юрист Онлайн https://juristonline.com квалифицированная юридическая помощь и консультации 24/7. Решение правовых вопросов любой сложности: семейные жилищные трудовые гражданские дела. Бесплатная первичная консультация.

  6. Дом из контейнера https://russiahelp.com под ключ — мобильное экологичное и бюджетное жильё. Индивидуальные проекты внутренняя отделка электрика сантехника и монтаж

  7. Загадки Вселенной https://phenoma.ru паранормальные явления нестандартные гипотезы и научные парадоксы — всё это на Phenoma.ru

  8. Сайт знакомств https://rutiti.ru для серьёзных отношений дружбы и общения. Реальные анкеты удобный поиск быстрый старт. Встречайте новых людей находите свою любовь и начинайте общение уже сегодня.

  9. Ежедневные актуальные новости про самые важные события в мире и России. Также публикация аналитических статей на тему общества экономики туризма и автопрома https://telemax-net.ru/

  10. Дача и огород фермерство и земледелие растения и цветы. Все о доме даче и загородной жизне. Мы публикуем различные мнения статьи и видеоматериалы о даче огороде https://sad-i-dom.com/

  11. PC application скачать steam desktop authenticator replacing the mobile Steam Guard. Confirm logins trades and transactions in Steam directly from your computer. Support for multiple accounts security and backup.

  12. Steam Guard for PC — sda steam. Ideal for those who trade play and do not want to depend on a smartphone. Two-factor protection and convenient security management on Windows.

  13. No more phone needed steam account authenticator lets you use Steam Guard right on your computer. Quickly confirm transactions access 2FA codes and conveniently manage security.

  14. Журнал о психологии и отношениях чувствах и эмоциях здоровье и отдыхе. О том что с нами происходит в жизни. Для тех кто хочет понять себя и других https://inormal.ru/

  15. Загадки Вселенной https://phenoma.ru паранормальные явления нестандартные гипотезы и научные парадоксы — всё это на Phenoma.ru

  16. Агентство недвижимости https://metropolis-estate.ru покупка продажа и аренда квартир домов коммерческих объектов. Полное сопровождение сделок юридическая безопасность помощь в оформлении ипотеки.

  17. Квартиры посуточно https://kvartiry-posutochno19.ru в Абакане — от эконом до комфорт-класса. Уютное жильё в центре и районах города. Чистота удобства всё для комфортного проживания.

  18. Jarvi — корм в котором нет ничего лишнего только польза корм jarvi состав ozon.ru/product/suhoy-korm-jarvi-polnoratsionnyy-dlya-vzroslyh-koshek-s-chuvstvitelnym-pishchevareniem-s-indeykoy-1-1173234324 .

  19. Ритуальные услуги с сопровождением священника и религиозной церемонией Ритуальные услуги в Ярославле Ритуальные услуги в Ярославле .

  20. Корм Jarvi: идеальный баланс вкуса пользы и качества корм jarvi состав корм jarvi состав .

  21. СРО УН «КИТ» https://sro-kit.ru саморегулируемая организация для строителей проектировщиков и изыскателей. Оформление допуска СРО вступление под ключ юридическое сопровождение помощь в подготовке документов.

  22. Ремонт квартир https://berlin-remont.ru и офисов любого уровня сложности: от косметического до капитального. Современные материалы опытные мастера прозрачные сметы. Чисто быстро по разумной цене.

  23. Ремонт квартир https://remont-kvartir-novo.ru под ключ в новостройках — от черновой отделки до полной готовности. Дизайн материалы инженерия меблировка.

  24. Ремонт квартир https://remont-otdelka-mo.ru любой сложности — от косметического до капитального. Современные материалы опытные мастера строгие сроки. Работаем по договору с гарантиями.

  25. Webseite cvzen.de ist Ihr Partner fur professionelle Karriereunterstutzung – mit ma?geschneiderten Lebenslaufen ATS-Optimierung LinkedIn-Profilen Anschreiben KI-Headshots Interviewvorbereitung und mehr. Starten Sie Ihre Karriere neu – gezielt individuell und erfolgreich.

  26. sitio web tavoq.es es tu aliado en el crecimiento profesional. Ofrecemos CVs personalizados optimizacion ATS cartas de presentacion perfiles de LinkedIn fotos profesionales con IA preparacion para entrevistas y mas. Impulsa tu carrera con soluciones adaptadas a ti.

  27. Модульный дом https://kubrdom.ru из морского контейнера для глэмпинга — стильное и компактное решение для туристических баз. Полностью готов к проживанию: утепление отделка коммуникации.

  28. Сервисный центр специализируется на технике Apple всех моделей.

  29. Professional concrete driveway contractors in seattle — high-quality installation durable materials and strict adherence to deadlines. We work under a contract provide a guarantee and visit the site. Your reliable choice in Seattle.

  30. Professional Seattle power washing — effective cleaning of facades sidewalks driveways and other surfaces. Modern equipment affordable prices travel throughout Seattle. Cleanliness that is visible at first glance.

  31. Professional seattle deck builders — reliable service quality materials and adherence to deadlines. Individual approach experienced team free estimate. Your project — turnkey with a guarantee.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>