In this video, learn to create a branch on a remote repository.
- [Narrator] Once we've created a remote repository … on GitHub and we've told our project how to find it, … now we're ready to create remote branches. … Inside your project let's use git branch … to remind ourselves what branches we have. … And you can see I'm not on my master branch … so I'm going to go ahead and checkout master. … Now what I want to do, is I want to take that master branch … and I want to push all of that … code up to the remote repository. … Let's say it has some collaborators … are going to be working with it. … So I want to push it up there and make it available to them. … Now we do this on a branch by branch basis … so I can have local branches that only I see … and only I work with that's great cause … I can experiment and everyone doesn't … have to be looking over my shoulder. … But then I can also have branches … which are shared and which are remote. … So I want to make master into one of those … branches while I leave the others all local. … So the command we're going to use for that …
- Finding and viewing commits
- Creating and switching branches
- Comparing branches
- Resetting branches
- Merging branches
- Stashing uncommitted changes
- Setting up a remote repository
- Creating remote branches
- Fetching and pushing changes to a remote
- Enabling remote collaboration
Skill Level Beginner
1. Navigate the Commit Tree
3. Reset Branches
4. Merge Branches
5. Stash Changes
6. Set Up a Remote
7. Collaborate with a Remote
Next steps3m 40s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.