From 81f0bd92272ff4325b11cd7e13088398dfe8de84 Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Mon, 21 May 2018 11:55:41 -0400 Subject: [PATCH] add git notes --- git.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 git.md diff --git a/git.md b/git.md new file mode 100644 index 0000000..c264444 --- /dev/null +++ b/git.md @@ -0,0 +1,20 @@ + +Branches +============================================ + + +### Adding Branches ### +* local: `git checkout -b ` +* remote: `git push --set-upstream ` +* track remote: `git checkout --track /` + +### Deleting Branches ### + +* local: `git branch -d ` +* remote: `git push -d ` +* realize remote deletes: `git remote prune ` + +### Non-Standard Activities ### + +* merge only a single file into another branch `git checkout -- ` +* do not track `git rm ` \ No newline at end of file