Changes in your working directory are not branch-specific. If you change a
file without committing it, you can switch (checkout) branches as much as
you want. It's only when you commit that the changes get connected to a
branch.
If you want to immediately stash away local changes for fixing som
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 NewBranc
Thanks a ton. That took care of it.
On Jan 24, 10:44 pm, Konstantin Khomoutov
wrote:
> On Mon, Jan 24, 2011 at 04:38:05PM -0800, ats wrote:
> > I did not have the global user.name and user.email not set and hit the
> > commit first.
>
> > I am now trying to amend the username with the below comma