@matheusbsbs / matheus-bagliano / commits / 7243b350b3
Fork 0

Added a simple example of usage to the "documentation" :)

Signed-off-by: Simon Hausmann <simon@lst.de>

Simon Hausmann committed Apr 8, 2007 at 10:21 UTC 7243b350b3469eb78be950331290ea16e57c3de8
1 file changed +22
contrib/fast-import/git-p4.txt
+22
@@ -103,3 +103,25 @@ continue importing the remaining changes with
103
104 After submitting you should sync your perforce import branch ("p4" or "origin")
105 from Perforce using git-p4's sync command.
106 +
107 +
108 +Example
109 +=======
110 +
111 +# Clone a repository
112 + git-p4 clone //depot/path/project
113 +# Enter the newly cloned directory
114 + cd project
115 +# Do some work...
116 + vi foo.h
117 +# ... and commit locally to gi
118 + git commit foo.h
119 +# In the meantime somebody submitted changes to the Perforce depot. Rebase your latest
120 +# changes against the latest changes in Perforce:
121 + git-p4 rebase
122 +# Submit your locally committed changes back to Perforce
123 + git-p4 submit
124 +# ... and synchronize with Perforce
125 + git-p4 rebase
126 +
127 +