Struktura Commita:
- stan struktury w drzewie plików
- metadata (autor, data)
- referencja do rodzica (poprzedniego brancha)
Struktura Brancha:
-
implementowany jako plik przechowujący SHA1 hash.
-
Lokalizacja: .git/refs/heads/mójBranch
Struktura Commita:
Struktura Brancha:
implementowany jako plik przechowujący SHA1 hash.
Lokalizacja: .git/refs/heads/mójBranch
//: Playground - a class that saves and retrieves an array to the device | |
import Foundation | |
class ArrayStorageManager: NSObject { | |
static let shared = ArrayStorageManager() | |
private var documentsDirectoryURL: URL { | |
let url = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask).first | |
return url! |
[alias] | |
st = status | |
coma = commit -a | |
amend = commit --amend | |
amenda = amend -a | |
discard = checkout -- | |
unstage = reset HEAD -- | |
save = commit -m | |
gl = log --oneline --decorate --graph --all |
guard let index = items.index(where: {$0 == item}) | |
else { | |
return | |
} | |
items.remove(at: index) |
// Append this to your .vimrc | |
au BufNewFile,BufRead Podfile set filetype=ruby |
#!/bin/bash | |
# Usage: provide 2 parameters(provisioning profile path and new filename) | |
# | |
# sh ./provisioning2xml.sh path xml_name | |
path=$1 | |
name=$2 | |
echo "Generating $name.xml from path: $path" | |
security cms -D -i "$path" >> ./"$name".xml | |
echo "Finished" |
Predefined cell accessories for UICollectionViewListCell.