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>

  • 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 comment

Turn on JavaScript to leave a comment.

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

Please turn AdBlock off
Social Media Icons Powered by Acurax Web Design Company
Exit mobile version
%%footer%%