• Что бы вступить в ряды "Принятый кодер" Вам нужно:
    Написать 10 полезных сообщений или тем и Получить 10 симпатий.
    Для того кто не хочет терять время,может пожертвовать средства для поддержки сервеса, и вступить в ряды VIP на месяц, дополнительная информация в лс.

  • Пользаватели которые будут спамить, уходят в бан без предупреждения. Спам сообщения определяется администрацией и модератором.

  • Гость, Что бы Вы хотели увидеть на нашем Форуме? Изложить свои идеи и пожелания по улучшению форума Вы можете поделиться с нами здесь. ----> Перейдите сюда
  • Все пользователи не прошедшие проверку электронной почты будут заблокированы. Все вопросы с разблокировкой обращайтесь по адресу электронной почте : info@guardianelinks.com . Не пришло сообщение о проверке или о сбросе также сообщите нам.

100 Days of DevOps: Day 26

Sascha Оффлайн

Sascha

Заместитель Администратора
Команда форума
Администратор
Регистрация
9 Май 2015
Сообщения
1,483
Баллы
155

Updating Git Remote and Pushing Changes


The xFusionCorp development team updated the project repository. A new remote needed to be added and the latest changes pushed to it. The task involved configuring the new remote, adding a file to the repository, and pushing the changes.

Steps Performed

1. Navigate to the repository


cd /usr/src/kodekloudrepos/official



2. Add the new remote


Added a new remote named dev_official pointing to /opt/xfusioncorp_official.git:


git remote add dev_official /opt/xfusioncorp_official.git




Verify remotes:


git remote -v




Output confirms the new remote is configured:


dev_official /opt/xfusioncorp_official.git (fetch)
dev_official /opt/xfusioncorp_official.git (push)



3. Copy the required file into repository


Copied /tmp/index.html into the working directory of the repo:


cp /tmp/index.html .



4. Add and commit the file


Staged and committed the new file:


git add index.html
git commit -m "Added index.html file"



5. Push the master branch to the new remote


git push dev_official master



Notes

  • If you want dev_official to act as the default remote for pushes, run:

git push -u dev_official master



Источник:

Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.

 
Вверх Снизу