0

Hi am new to github and bitbucket

I am trying to use this for my android studio first i create project and create repository in the github, then I follow all the step to push the project. but i get error when push the project error is:

Push failed
Failed with error: fatal: unable to access 'https://github.com/Harin-Kaklotar/ProjectWithNewBoston.git/': Failed to connect to 127.0.0.1 port 8087: Connection refused enter image description here how to solve this?

I am using windows os
I use this example https://www.londonappdeveloper.com/how-to-use-git-hub-with-android-studio/#comment-23697

can any one help to solve this?

Harin Kaklotar
  • 305
  • 7
  • 22

1 Answers1

0

I think you should follow the steps below:

# add remote for local directory
git remote add origin https://github.com/Harin-Kaklotar/ProjectWithNewBoston.git

# add all file to stage
git add -A

# commit your code 
git commit -m 'first commit'

# pull to update the changes from remote
git pull origin master

# push to remote
git push origin master

Comment to me if you have any issue.

Nguyen Sy Thanh Son
  • 5,300
  • 1
  • 23
  • 33