On Wed, 26 Jan 2011 12:40:37 -0800 (PST)
akaTreyT <treyta...@gmail.com> wrote:
> I create a project in Xcode and do the following in terminal:
> cd to the project path
> git init
> nano .gitignore (fill in the ignore files)
> git add .
> git commit -m "init commit"
> git branch NewBranch
> git checkout NewBranch
> edit the files
> git checkout master
> the problem is the edits on the NewBranch are shown on the master.
> Sure I'm missing a step or two, any ideas?
In addition to what Thomas said -- you can actually commit your local
changes and switch the branch. When you are back, you can remove the
tip commit while keeping the changes in the working tree using
$ git reset HEAD^
Such sort of thing is OK to do if you're sure you did not push your
branch to any place from someone could branch off it.
You received this message because you are subscribed to the Google Groups "Git
for human beings" group.
To post to this group, send email to firstname.lastname@example.org.
To unsubscribe from this group, send email to
For more options, visit this group at