how to upload an android project to github through command line in ubuntu / linux / windows

Go to the project root directory which you want to upload to git hub

Step 1. git init

If you dont have README.md then

{

Step 1.1 touch README.md

Step 1.2 git add README.md

}
else
{

Step 1.1 git clone https://github.com/<username>/<projectname&gt;.git

Step 1.2 git remote rm origin

}

Step 2. git add .

Step 3. git commit -m “initial commit”

Step 4. git remote add origin https://github.com/<username>/<projectname&gt;.git

Step 5. git push -u origin master

Advertisements

About krishjlk

http://www.facebook.com/krishna.kanth.121

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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

%d bloggers like this: