Add existing/new project to GitHub/BitBucket

1. Create a new empty repository on GitHub.
2. open command prompt in windows or shell in unix
3. Move to Main directory of your Ruby or any other project.
4. git init
5. git add .
6. git commit -m “First Commit”
7. git remote add origin ‘copy the http URL from github/BitBucket’
if you want to verify you newly added URL
8 git remote -v
Push the change on remote machine
9 git push origin master


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at

Up ↑

%d bloggers like this: