From 6faf10529c201f5cc550356b438a8d6a3087f460 Mon Sep 17 00:00:00 2001 From: Jeff Parsons Date: Thu, 26 Mar 2015 10:11:20 -0700 Subject: [PATCH] Development notes --- notes.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 notes.md diff --git a/notes.md b/notes.md new file mode 100644 index 000000000..548c66aab --- /dev/null +++ b/notes.md @@ -0,0 +1,29 @@ +Git "Cheat Sheet" +=== + +Committing files +--- + +To automatically stage files that have been modified and deleted, include -a; eg: + + git commit -a + +Creating a new branch ("386dev") after modifying one or more files +--- + + git checkout -b 386dev + +Pushing a new branch ("386dev") +--- + +Since a simple `git push` will report: + + fatal: The current branch 386dev has no upstream branch. + To push the current branch and set the remote as upstream, use + + git push --set-upstream origin 386dev + +do this instead: + + git push -u origin 386dev +