stash
stash copied to clipboard
Git init not working, python 2.7
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.
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.