DevOps Classroom notes 28/Mar/2025

Git Remote Repos contd

  • Every remote repo added to the git brings in additional branches
  • One local repo can be connected to more than one remote repos.
  • The command to push the changes is
git push <remote-name> <branch-name>

Preview

  • Git pull fetch + merge : DO this when you dont have local changes
  • git pull –rebase fetch + rebase: DO this when you have local changes for cleaner history.
  • Git push => git push <default-remote> <upstream branch>
  • Upstream branch: For the local branch in your repo what is the equivelent remote branch
  • Syncing changes from one remote repo to other is a straight forward
    • Add two repos as remote to you local repo (clone from source repo and add remote of the destination)
    • now push branches by using git push <dest-remote> <branch>

Developer Workflows

  • Developer will be working on new features or defects
  • Note: Watch the classroom recording

Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Animated Social Media Icons by Acurax Responsive Web Designing Company

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Visit Us On FacebookVisit Us On LinkedinVisit Us On Youtube