aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards/kc60/keymaps/noroadsleft/readme_git.md
diff options
context:
space:
mode:
authornoroadsleft <18669334+noroadsleft@users.noreply.github.com>2018-09-30 22:06:29 -0700
committerDrashna Jaelre <drashna@live.com>2018-09-30 22:06:29 -0700
commita398d2cece1ee69006cf26e9a86fbf38e1acb0d1 (patch)
tree087735176c3164b5a9eb27938978d38a3e5a2c37 /keyboards/kc60/keymaps/noroadsleft/readme_git.md
parenta6c85f1c2383616e875e7cdc6ce31873d6fb0ce3 (diff)
downloadfirmware-a398d2cece1ee69006cf26e9a86fbf38e1acb0d1.tar.gz
firmware-a398d2cece1ee69006cf26e9a86fbf38e1acb0d1.tar.bz2
firmware-a398d2cece1ee69006cf26e9a86fbf38e1acb0d1.zip
Keymap: Add noroadsleft keymap for KC60 (#3876)
* Add personal KC60 keymap * Update personal KC60 keymap * Keymap update 2018-05-30 01:53 UTC-7 * Added macro: T_PEEKR * Added macro for MacOS Select All; modified MacOS function layer * Added git branch-name macro * Added GitHub signature macro * Added readme files * Added Quake 2 and System layers * Refactored keymap readme * Refactored to add userspace files; added Colemak layer * Minor code cleanup; updated readme files * Reverted use of userspace Decided not to make use of the Userspace feature at this time. Reverted its addition, and updated the readme files where needed (they were linking to userspace files). * Updated per review comments by @drashna * Refactor buggy macros I'm still not sure these work properly * Fix Windows shortcuts * Fix Mac shortcuts, possibly Untested; still may be broken. * Remove PREVENT_STUCK_MODIFIERS from config.h Deprecated by #3107
Diffstat (limited to 'keyboards/kc60/keymaps/noroadsleft/readme_git.md')
-rw-r--r--keyboards/kc60/keymaps/noroadsleft/readme_git.md56
1 files changed, 56 insertions, 0 deletions
diff --git a/keyboards/kc60/keymaps/noroadsleft/readme_git.md b/keyboards/kc60/keymaps/noroadsleft/readme_git.md
new file mode 100644
index 000000000..585d9c890
--- /dev/null
+++ b/keyboards/kc60/keymaps/noroadsleft/readme_git.md
@@ -0,0 +1,56 @@
+# @noroadsleft's Git aliases
+
+[Return to the directory index.](./)
+
+```
+[alias]
+ # change branches
+ co = checkout
+ cob = checkout -b
+
+ # sync master
+ sync = "!f() { if [ $(git branch-name) != "master" ]; then git checkout master; fi; git pull upstream master; git push origin master; }; f"
+
+ # Return the last five commits on the branch, in a more compact format
+ hist = log --pretty=format:\"%C(yellow)%h%Creset %Cgreen%ad%Creset%n %w(100,0,3)%s%d [%an]%n\" --graph --date=iso-local -n 5
+ histm = log --pretty=format:\"%C(yellow)%h%Creset %w(100,0,3)%s%d [%an]\" --graph --date=iso-local -n 5
+ histt = log --pretty=format:\"%C(yellow)%h%Creset %<(88,trunc)%s [%an]\" --graph --date=iso-local -n 5
+ histb = log --reverse --pretty=format:\"- %<(98,trunc)%s [%an]\" --date=iso-local -n 5
+
+ # compact diff
+ df = "diff --compact-summary"
+
+ # Short-form status
+ st = "!git status --short"
+
+ # Returns the name of the current branch
+ branch-name = "!git rev-parse --abbrev-ref HEAD"
+
+ # short-form of the above
+ bn = "!git branch-name"
+
+ po = "push origin ($(git branch-name))"
+
+ # List the stashes
+ sl = "stash list"
+
+ # Show the contents of a numbered stash
+ # Syntax:
+ # git st-show <int>
+ st-show = "!f() { git stash show stash@{$1} -p; }; f"
+
+ # Apply a stash, without deleting it from the list of stashes
+ # Syntax:
+ # git st-copy <int>
+ st-copy = "!f() { git stash apply stash@{$1}; }; f"
+
+ # Unstage a file
+ unstage = "reset HEAD"
+
+ # Restore a file to the state it was in when checked out
+ restore = "checkout --"
+
+ # Compare local master repo to its upstream branch. If anything is returned, local branch has diverged from upstream.
+ cm = "!f() { git fetch upstream master; git diff $(git branch-name) upstream/master --compact-summary; }; f"
+ cml = "!f() { git fetch upstream master; git diff $(git branch-name) upstream/master; }; f"
+```