             let repoString = repoInputTextField.stringValue
             let githubAPIUrlString = githubAPIUrlInputTextField.stringValue
             let githubTokenString = githubTokenInputTextField.stringValue
-            self.repo = repoString
-            self.githubAPIUrl = githubAPIUrlString
-            self.githubToken = githubTokenString
+            self.repo = repoString == "" ? nil : repoString
+            self.githubAPIUrl = githubAPIUrlString == "" ? nil : githubAPIUrlString
+            self.githubToken = githubTokenString == "" ? nil : githubTokenString
         case .alertSecondButtonReturn: //Cancel
             break
         default:

        // Insert code here to tear down your application
    }
    
    func showConfigWizard() {
        let a = NSAlert()
        a.messageText = "Configs"
        a.addButton(withTitle: "Save")
        a.addButton(withTitle: "Cancel")
        
        let repoInputTextField = NSTextField(frame: NSRect(x: 0, y: 0, width: 300, height: 24))
        repoInputTextField.placeholderString = "git@github.com:ivanfoong/xcode-swift-snippets.git"
        let githubAPIUrlInputTextField = NSTextField(frame: NSRect(x: 0, y: 28, width: 300, height: 24))
        githubAPIUrlInputTextField.placeholderString = "http://github.com/api/v3/repos/ivanfoong/xcode-swift-snippets"
        let githubTokenInputTextField = NSTextField(frame: NSRect(x: 0, y: 56, width: 300, height: 24))
        githubTokenInputTextField.placeholderString = "Token"
        
        let containerView = NSView(frame: NSRect(x: 0, y: 0, width: 300, height: 90))
        containerView.addSubview(repoInputTextField)

        return nil
    }
    
    @objc
    func showConfig(sender: AnyObject) {
        showConfigPrompt()
    }
    
    private func startingToSync() {
