Git and GitHubLesson 27Free preview
Push Branch to GitHub
This lesson is part of Git · All levels
Summary
Branches that are already working can be sent to GitHub so that the team can review or continue. First a branch requires a -u to make the branch remote and set upstream. If the local commit is left behind from the remote, pull --rebase before re-committing.
Key points
- Git sends a new branch to the remote
- First to create a branch with the same name in remote
- Git push origin <lokal>:<remote> map the name of the different branch
- Naming conventions such as feature/name-feature facilitate identification
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.