Skip to content

Documentation for Push (was: Alternating between branches for contributions) #6

@brocktopus

Description

@brocktopus

This issue is opened for anyone not that familiar with git/GitHub who might find him- or herself working on multiple types of contributions (article, blog, etc.).

You'll very likely want to swap into the master branch each time you generate a new branch to checkout so that the base is the master rather than whatever new branch you'd just made. Otherwise, you might find the 'predecessor' branch's commits follow you into the new branch. (See: my closed pull request here: #4 )

Example:
git checkout master
git checkout -b submission (this creates a new branch, 'submission', based on the master branch, which I'd previously been in)
-> make whatever commits desired in the submission branch
git checkout master (jumping back into the master branch to avoid my submission commits sticking with me when i make a new branch)
git checkout -b post (this creates a new branch, again based on master instead of submission)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions