[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Git workflow overview
From: |
Neil Jerram |
Subject: |
Re: Git workflow overview |
Date: |
Sat, 29 Mar 2008 00:56:39 +0000 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) |
address@hidden (Ludovic Courtès) writes:
> Hi,
>
> Just to clarify things, the following illustrates the typical Git
> workflow.
Thanks, this has been very useful; and thanks also for getting the Git
repository up and running!
Now, what am I doing wrong here? I've created a load of new
.gitignore files, and tried to push them to Savannah's master and
1.8.x branches. The push to master looks good, but the push to 1.8.x
does nothing:
(We start off on my 1.8.x, whose remote is Savannah's
branch_release-1-8. I've created and added all the new files, and
committed them to my local 1.8.x. Then...)
address@hidden:~/Organized/SW/Guile/guile-git$ git pull
Already up-to-date.
address@hidden:~/Organized/SW/Guile/guile-git$ git push
Everything up-to-date
address@hidden:~/Organized/SW/Guile/guile-git$ git checkout -b master
git checkout: branch master already exists
(At this point I did "git checkout master" in another window, so now
we're moving to my local master.)
address@hidden:~/Organized/SW/Guile/guile-git$ git pull
Already up-to-date.
address@hidden:~/Organized/SW/Guile/guile-git$ git cherry-pick 1.8.x
Auto-merged .gitignore
CONFLICT (add/add): Merge conflict in .gitignore
Automatic cherry-pick failed. After resolving the conflicts,
mark the corrected paths with 'git add <paths>' or 'git rm <paths>' and commit
the result.
When commiting, use the option '-c fbab080' to retain authorship and message.
(...Edited .gitignore to resolve the conflict...)
address@hidden:~/Organized/SW/Guile/guile-git$ git push
Counting objects: 82, done.
Compressing objects: 100% (42/42), done.
Writing objects: 100% (47/47), 6.42 KiB, done.
Total 47 (delta 31), reused 0 (delta 0)
To ssh://address@hidden/srv/git/guile.git
f2060a5..b0ea37d master -> master
(Now I try switching back to 1.8.x, to see if it might have changed
its mind...)
address@hidden:~/Organized/SW/Guile/guile-git$ git checkout 1.8.x
Switched to branch "1.8.x"
address@hidden:~/Organized/SW/Guile/guile-git$ git push
Everything up-to-date
(It hasn't.)
Yours waiting for enlightenment....!
Neil