that you have already created, using +git init+ or +git clone+. So get
one of those; if you don't have one at hand, try for example
- $ git clone http://homepage.ntlworld.com/cmarinas/stgit.git
+ $ git clone git://repo.or.cz/stgit.git
$ cd stgit
Before you can create StGit patches, you have to run linkstg:init[]:
at the situation with linkstg:status[]:
$ stg status
- ? TODO.ancestor
- ? TODO.current
- ? TODO.patched
C TODO
As we were told by linkstg:push[], the conflict is in the file +TODO+.
listed here; prefixed with +C+ if they had conflicts, and +M+ if StGit
managed to automatically resolve everything in the file.)
-NOTE: +TODO.ancestor+, +TODO.current+, and +TODO.patched+ are the
-three versions of the file that StGit tried to merge. The +.current+
-file is the version before the patch was applied, +.patched+ is the
-version in the patch we tried to push, and +.ancestor+ the version
-that contains neither of the added lines.
-
At this point, we have two options:
1. Undo the failed merge with linkstg:undo[]. (Remember to use the
+$$--hard$$+ flag, since the unresolved conflict means the
worktree is not clean.)
- 2. Manually resolve the conflict.
+ 2. Manually resolve the conflict (editing the file directly followed
+ by +git add+ or using +git mergetool+.)
To resolve the conflict, open +TODO+ in your favorite editor. It ends
like this: