Hi, hope someone can help ... I'm very confused ...

I'm using git-gui on windows.  I created a new file in my project
source directory.  I'm fond of it - in fact it is the successful
culmination of months of work - so I decide I want to keep it.  I fire
up Git-Gui.  My new file is in the list of Unstaged Changes.  Over on
the right, in the yellow highlighted line, it helpfully points out
that the file is local and not currently tracked.  I click it or do
something or other, I don't really know what, and it's now down in the
list of Staged Changes (green). Yay.  I commit, but when I try to push
I get an error about non-fast-forward changes with the suggestion to
pull.

git-gui has no "pull" command but I've been assuming that Remote-
>Fetch From->origin == pull.  It says I'm up-to-date.  Push still does
nothing.  I spend some time trying to read more about git on the
internets.  Nothing seems relevant, and most of the git commands seem
to be called something else in git-gui.  Frustrated, I go out and hire
a monkey to randomly press buttons for a while, figuring that since an
analytical approach isn't giving good results I'll try a Monte Carlo
method. Monkey pokes around and tries Branch->Checkout->Tracking
Branch->origin/master which of course reverts my local files to what's
on our main project server repository, and I can't figure out how to
get them back.

My cryptic notes from the last time this happened to me, last month,
say

git branch
git checkout b409bdf

git checkout -b newbranch
git checkout master
git merge newbranch
git branch -d newbranch
git push

because the deleted file was in non-tracked-branch-limbo which can be
found by that magic number there, but this time I can't find it.
argh!  where are my files?


-- 
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 git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.

Reply via email to