github - C9 created workspace before repository -
i made mistake of creating workspace before repository on c9.io.
as result not have version control. naturally, want use git project before make more changes. have tried has failed. rather not have copy code i've made new work space set repository. if has suggestions or answers problem, via command line, gui or else wonderful.
cloud9 doesn't special magic when cloning git repository, , can add remote standard way locally:
git init
initialize git repository in current folder
git add -a
add (or want)
git commit -m "initial commit"
commit
git remote add origin git@github.com:<me>/<repo>.git
add repo
git push origin head:master
push head
master
branch in remote added
Comments
Post a Comment