@@ -174,20 +174,41 @@ Common actions during interactive rebase:
174174It will look something similar to this (taken from the tutorial linked above):
175175
176176``` bash
177- pick 2231360 some old commit
178- pick ee2adc2 Adds new feature
177+ pick 1ad9716 Added brandade croquettes (# 58)
178+ pick d5c6d74 :memo: description
179+ pick c55c98c :art: enumerate instructions as steps for recipe
180+ pick a0b894b 🚧 fix local git issues using git mv
179181
180-
181- # Rebase 2cf755d..ee2adc2 onto 2cf755d (9 commands)
182+ # Rebase c0dd3ef..a0b894b onto c0dd3ef (4 commands)
182183#
183184# Commands:
184- # p, pick = use commit
185- # r, reword = use commit, but edit the commit message
186- # e, edit = use commit, but stop for amending
187- # s, squash = use commit, but meld into previous commit
188- # f, fixup = like "squash", but discard this commit's log message
189- # x, exec = run command (the rest of the line) using shell
190- # d, drop = remove commit
185+ # p, pick <commit> = use commit
186+ # r, reword <commit> = use commit, but edit the commit message
187+ # e, edit <commit> = use commit, but stop for amending
188+ # s, squash <commit> = use commit, but meld into previous commit
189+ # f, fixup [-C | -c] <commit> = like "squash" but keep only the previous
190+ # commit's log message, unless -C is used, in which case
191+ # keep only this commit's message; -c is same as -C but
192+ # opens the editor
193+ # x, exec <command> = run command (the rest of the line) using shell
194+ # b, break = stop here (continue rebase later with 'git rebase --continue')
195+ # d, drop <commit> = remove commit
196+ # l, label <label> = label current HEAD with a name
197+ # t, reset <label> = reset HEAD to a label
198+ # m, merge [-C <commit> | -c <commit>] <label> [# <oneline>]
199+ # create a merge commit using the original merge commit's
200+ # message (or the oneline, if no original merge commit was
201+ # specified); use -c <commit> to reword the commit message
202+ # u, update-ref <ref> = track a placeholder for the <ref> to be updated
203+ # to this position in the new commits. The <ref> is
204+ # updated at the end of the rebase
205+ #
206+ # These lines can be re-ordered; they are executed from top to bottom.
207+ #
208+ # If you remove a line here THAT COMMIT WILL BE LOST.
209+ #
210+ # However, if you remove everything, the rebase will be aborted.
211+ #
191212` ` `
192213
193214workflow:
@@ -213,13 +234,19 @@ repository.
213234 I created running the Python code below):
214235
215236 ` ` ` python
216- import numpy as np
217- alphabet = np.array([' a' , ' b' , ' c' , ' d' , ' e' , ' f' , ' g' , ' h' , ' i' , ' j' , ' k' , ' l' , ' m' ,
218- ' n' , ' o' , ' p' , ' q' , ' r' , ' s' , ' t' , ' u' , ' v' , ' w' , ' x' , ' y' , ' z' ],
219- dtype = ' <U1' )
220- mb = 1024 * 1024
221- n = 105 * mb # number of random characters to get >100MB so GitHub rejects it
222- np.random.choice(np.fromstring(alphabet, dtype = ' <U1' ), n)
237+ import numpy as np
238+
239+ alphabet = np.array([
240+ ' a' , ' b' , ' c' , ' d' , ' e' , ' f' , ' g' , ' h' , ' i' , ' j' , ' k' , ' l' , ' m' ,
241+ ' n' , ' o' , ' p' , ' q' , ' r' , ' s' , ' t' , ' u' , ' v' , ' w' , ' x' , ' y' , ' z' ,
242+ ],
243+ dtype=' <U1' )
244+ mb = 1024* 1024
245+ n = 105* mb # number of random characters to get >100MB so GitHub rejects it
246+ content = np.random.choice(np.frombuffer(alphabet, dtype='<U1'), n)
247+
248+ with open('large_text_file.txt', 'w') as f:
249+ f.write(''.join(content))
223250 ` ` `
224251
225252- commit them in a data folder
0 commit comments