stash icon indicating copy to clipboard operation
stash copied to clipboard

Git init not working, python 2.7

Open MaxPelly opened this issue 6 years ago • 1 comments

Git init doesn’t seem to be doing anything, no .git file created and trying to commit results in an error, to recreate:

mkdir test
git init
echo hi >> test.txt
git commit
ls -a

Expected result, commit succeeds and a .git file is shown

Actual result no .git file, commit fails with this is not a git repository.

MaxPelly avatar Aug 27 '18 19:08 MaxPelly

IIRC, git init in stash wants a path -- i.e. git init . BTW, if you plan on pushing back to GitHub, it is better to create the repo on GitHub, then clone back to stash. See https://github.com/jsbain/stash_git_tutorial/blob/master/stash_git_tutorial.md for example of a workflow that (at least, at one time) worked.

jsbain avatar Aug 29 '18 05:08 jsbain