Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warn if origin/gh-pages exists and the local gh-pages branch is not synced to it #12

Open
kevmoo opened this issue Mar 6, 2018 · 1 comment

Comments

@kevmoo
Copy link
Owner

kevmoo commented Mar 6, 2018

No description provided.

@kevmoo
Copy link
Owner Author

kevmoo commented Apr 24, 2019

This will be some combination of git config --list to see if the current branch or "master" is tracking a remote (likely origin)

If yes, then use git show-ref to see if refs/remotes/origin/TARGET_BRARCH exists (likely gh-pages)

If so, then see if a local gh-pages exists, if not – yell about wiring up the remote...right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant