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

error & exit 1 if repository not setup or not git cloned from remote repository #28

Closed
BradleyA opened this issue Jul 22, 2018 · 1 comment
Assignees
Labels
enhancement Increase or improve in quality, performance, business value, function, or user satisfaction. needs investigation What? How?

Comments

@BradleyA
Copy link
Owner

fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git [...] -- [...]'
fatal: No remote configured to list refs from.

Example to create a new repository on the command line

echo "# " >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/BradleyA/test-markit-new.git
git push -u origin master

@BradleyA BradleyA added the enhancement Increase or improve in quality, performance, business value, function, or user satisfaction. label Jul 22, 2018
@BradleyA BradleyA self-assigned this Jul 22, 2018
@BradleyA BradleyA changed the title error and exit 1 if repository not setup or cloned from remote repository error and exit 1 if repository not setup or not git cloned from remote repository Jul 22, 2018
@BradleyA BradleyA changed the title error and exit 1 if repository not setup or not git cloned from remote repository error & exit 1 if repository not setup or not git cloned from remote repository Jul 22, 2018
BradleyA added a commit that referenced this issue Jul 22, 2018
@BradleyA
Copy link
Owner Author

BradleyA commented Feb 7, 2019

need to retest this with out access to network not sure this code is working as commented it is check if git repository not if remote access to remote repository

@BradleyA BradleyA reopened this Feb 7, 2019
@BradleyA BradleyA added the needs investigation What? How? label Feb 9, 2019
BradleyA added a commit that referenced this issue Feb 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Increase or improve in quality, performance, business value, function, or user satisfaction. needs investigation What? How?
Projects
None yet
Development

No branches or pull requests

1 participant