Git clone only files without folder

You can simply pull your master branch: git init git remote add origin “origin-url” git pull origin master Clone commands will usually just clone the whole repository with the directory.

Categories git

List comprehension from python dictionary

Here’s my example: params = { ‘param1’: [[25, 30, 35],[-25, -30, -35]], ‘param2’: [[20, 25, 30],[-20, -25, -30]] } for key, value in paramsNEW.items(): print( key, value[0], value[1] ) for v in value: print(v) for key, value in paramsNEW.items(): print(key, [(v1,v2) for v1 in value[0] for v2 in value[1]])