ghsync icon indicating copy to clipboard operation
ghsync copied to clipboard

disable commits

Open sull opened this issue 7 years ago • 2 comments

This is interesting, might try it out. Thoughts on a mode to disable commits (ignore changes on local) and only pull down changes detected on github repo? I have a situation where that control in some cases would be useful.

sull avatar May 04 '17 18:05 sull

@sull I think you can ignore all changes on local by configuring repos[].ignores in ~/.config/ghsync/default.yml like below:

repos:
  - remote: {owner}/{repo}
    local: /path/to/local/repo
    ignores:
      - **

Please try it.

ttskch avatar May 22 '17 06:05 ttskch

FYI, repos[].ignores is an anymatch-compatible definition.

ttskch avatar May 22 '17 06:05 ttskch