I recently tried using the Cloud9 online IDE. It starts by creating a clone of your Github repo. My regular local use of git is fairly simple (init, status, commit, push to Github, branch, edit, pull, merge...), but because I don't usually clone, I haven't got my autopilot head around how to:
this outline guide suggests using the same username for github and C9, but a no-clutter step-by-step is what I'm looking for...
Usage. git clone is primarily used to point to an existing repo and make a clone or copy of that repo at in a new directory, at another location. The original repository can be located on the local filesystem or on remote machine accessible supported protocols. The git clone command copies an existing Git repository.
To clone a Git repository, you will first copy the remote URL from your repository hosting service—in this case GitHub. You will then use the Git clone command followed by the remote repo's URL. If you are working with a private repository, you will be prompted for your remote hosting service credentials.
If you auth with your Github account in cloud9 and clone a Github project, then if you git push it will push to the original repo in Github
[JJ] If you cloned the project in Cloud9 before (via the command line, so not via the UI on the dashboard), you can do git remote add upstream [email protected]:your/repo.git
. Now you have another remote that you can either pull from (git pull upstream master
or push to git push upstream master
).
Commit as usual using the C9 CLI, then simply run git push
from the C9 CLI, as you would normally when developing on your machine.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With