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.

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

  1. экстренный вывод из запоя краснодар vivod-iz-zapoya-krasnodar008.ru экстренный вывод из запоя краснодар

  2. . Роль юристов в современной жизни. Сложные правовые вопросы требуют профессионального подхода. Юридическая консультация помогает разобраться в запутанных ситуациях. Клиенты часто обращаются к юристам из-за недостатка знаний в праве. В некоторых случаях юридические услуги становятся критически необходимыми. Поиск компетентного юриста имеет решающее значение для успеха дела. На сайте можно найти множество информации о юридических услугах. На сайте указаны телефоны и адреса опытных юристов для обращения. Знание к какому юристу обратиться может значительно облегчить решение проблемы. Запрос на консультацию к юристу — это первый шаг к решению проблемы. Не бойтесь задавать вопросы и выяснять нюансы. Помните что юристы готовы помочь вам в любых сложных ситуациях.

  3. домашний интернет ростов rostov-domashnij-internet005.ru подключить домашний интернет в ростове

  4. недорогой интернет ростов rostov-domashnij-internet006.ru подключить домашний интернет ростов

  5. экстренный вывод из запоя vivod-iz-zapoya-irkutsk005.ru вывод из запоя круглосуточно иркутск

  6. экстренный вывод из запоя vivod-iz-zapoya-minsk005.ru экстренный вывод из запоя минск

  7. Сериал «Уэнсдей» смотреть сериал уэнсдей 2 сезон мрачная и захватывающая история о дочери Гомеса и Мортиши Аддамс. Учёба в Академии Невермор раскрытие тайн и мистика в лучших традициях Тима Бёртона. Смотреть онлайн в хорошем качестве.

  8. Срочно нужен сантехник? сантехник алматы недорого вызов в Алматы? Профессиональные мастера оперативно решат любые проблемы с водопроводом отоплением и канализацией. Доступные цены выезд в течение часа и гарантия на все виды работ

  9. Die Methode hypertherme Chemotherapie erhoht die Wirksamkeit von Krebsmedikamenten indem sie gezielt erwarmte Losungen einsetzt um Tumorzellen in der Bauchhohle wirksam zu zerstoren.

  10. Сериал «Уэнсдей» https://uensdey.com мрачная и захватывающая история о дочери Гомеса и Мортиши Аддамс. Учёба в Академии Невермор раскрытие тайн и мистика в лучших традициях Тима Бёртона. Смотреть онлайн в хорошем качестве.

  11. Срочно нужен сантехник? https://santehnik-v-almaty.kz в Алматы? Профессиональные мастера оперативно решат любые проблемы с водопроводом отоплением и канализацией. Доступные цены выезд в течение часа и гарантия на все виды работ

  12. Die moderne Krebstherapie hipec wird bei Peritonealkarzinose eingesetzt um mit erwarmten Zytostatika direkt im Bauchraum versteckte Tumorzellen zu zerstoren und das Ruckfallrisiko zu senken.

  13. Сериал «Уэнсдей» смотреть сериал уэнсдей мрачная и захватывающая история о дочери Гомеса и Мортиши Аддамс. Учёба в Академии Невермор раскрытие тайн и мистика в лучших традициях Тима Бёртона. Смотреть онлайн в хорошем качестве.

  14. Срочно нужен сантехник? сколько стоят услуги сантехника в Алматы? Профессиональные мастера оперативно решат любые проблемы с водопроводом отоплением и канализацией. Доступные цены выезд в течение часа и гарантия на все виды работ

  15. Die erfahrenen Onkologen hipec spezialisten entwickeln individuelle Behandlungsplane abgestimmt auf Tumorstadium Allgemeinzustand und beste Therapieoptionen fur jeden einzelnen Patienten.

  16. Флешку оптом https://usb-flashki-optom-24.ru 32 гб и флешка в виде пластиковой карты в Барнауле. Колонки переносные с блютузом и флешкой и купить оригинальную флешку в Братске. Флешка оптом зенит и флешка с гравировкой Екатеринбург

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>