Skip to content

Instantly share code, notes, and snippets.

@benjaminsnorris
Created September 10, 2014 14:08
Show Gist options
  • Save benjaminsnorris/f864e4e522c8c07bb47f to your computer and use it in GitHub Desktop.
Save benjaminsnorris/f864e4e522c8c07bb47f to your computer and use it in GitHub Desktop.
GitReferenceDataFunction
func myGitCommands() -> [String: String] {
var commands = [String: String]()
commands["git status"] = ": shows changed files"
commands["git diff"] = ": shows actual changes"
commands["git add"] = ": adds changed files to the commit"
commands["git commit -m\"notes\""] = ": commits the changes"
commands["git push origin _branch_"] = ": pushes commits to branch named _branch_"
commands["git log"] = ": displays progress log"
commands["git comment --amend"] = ": re-enter last commit message"
return commands
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment