Wordsmith3000
Wordsmith3000

Reputation: 1

C9 created workspace before repository

I made the mistake of creating a workspace before a repository on C9.io.

As a result I do not have version control. Naturally, I want to use Git for my project before make any more changes. Everything I have tried has failed. I would rather not have to copy all the code I've made into a new work space with an already set up repository. So if anyone has any suggestions or answers to this problem, via Command line, GUI or anything else that would be wonderful.

Upvotes: 0

Views: 185

Answers (1)

a user
a user

Reputation: 24159

cloud9 doesn't do any special magic when cloning from a git repository, and you can add a remote the standard way you would do locally:

git init initialize a git repository in the current folder
git add -a add everything (or what you want)
git commit -m "initial commit" commit
git remote add origin [email protected]:<me>/<repo>.git add your repo
git push origin HEAD:master push HEAD to master branch in the remote you just added

Upvotes: 1

Related Questions