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
