git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
You don't have to delete your local branch.
Simply delete your remote tracking branch:
git branch -d -r origin/<remote branch name>
(This will not delete the branch on the remote repo!)
See "Having a hard time understanding git-fetch"
there's no such concept of local tracking branches, only remote tracking branches.
#pragma mark - WKUIDelegate | |
- (void)webView:(WKWebView *)webView runJavaScriptAlertPanelWithMessage:(NSString *)message initiatedByFrame:(WKFrameInfo *)frame completionHandler:(void (^)())completionHandler | |
{ | |
UIAlertController *alert = [UIAlertController alertControllerWithTitle:nil | |
message:message | |
preferredStyle:UIAlertControllerStyleAlert]; | |
[alert addAction:[UIAlertAction actionWithTitle:NSLocalizedString(@"OK", nil) style:UIAlertActionStyleCancel handler:^(UIAlertAction *action) { | |
completionHandler(); |
When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.
Please note we have a code of conduct, please follow it in all your interactions with the project.
// | |
// UIImage+CKAsset.swift | |
// CloudKitDemo | |
// | |
// Created by Marcus Smith on 2/29/16. | |
// Copyright © 2016 FrozenFireStudios. All rights reserved. | |
// | |
import UIKit | |
import CloudKit |
print(String(data: try! JSONSerialization.data(withJSONObject: dict, options: .prettyPrinted), encoding: .utf8)!) |
Sources include, but not limited to:
struct DoublyLinkedList<Element> { | |
class Node { | |
var value: Element | |
weak var next: Node? | |
var previous: Node? | |
init(_ value: Element, next: Node?, previous: Node?) { | |
(self.value, self.next, self.previous) = (value, next, previous) | |
next?.previous = self | |
previous?.next = self |
// | |
// String+HTML.swift | |
// AttributedString | |
// | |
// Created by Costantino Pistagna on 08/11/2017. | |
// Copyright © 2017 sofapps.it All rights reserved. | |
// | |
import UIKit | |
import Foundation |