Saturday, 15 April 2017

How to upload a project on github 😉

  1. Create a new repository on GitHub. Or you can use Intellij like in image ,

  2. Open Git Bash.
  3. Change the current working directory to your local project.
  4. (Go to current project working directory like: My_Project)
  5. Initialise the local directory as a Git repository.

1. git init



2. Add the files in your new local repository.  git add , 


1. Commit the files that you've staged in your local repository.
            git commit -m "First commit"


In the Command prompt, add the URL for the remote repository where your local repository will be pushed.

git remote add origin remote repository URL

# Sets the new remote
git remote -v

# Verifies the new remote URL



Push the changes in your local repository to GitHub.

git push origin master


Done  ðŸ˜‰

Related Posts:

  • Clover Why code coverage is required in TFS: To know how well our tests actually test our code To know whether we have enough testing in place To maintain… Read More
  • AWS Notes NAT End Point  v Custom security groups do not have inbound allow rules (all inbound traffic is … Read More
  • BOTO and AWS What needs to be install : Python 3.x.x pyCharm IDE for development AWS console access #!/usr/bin/env python import boto3 ec2 = boto3.resource('e… Read More
  • Coding standards for JAVA Todo: Transactions - debiting credits and assigning to someone else This is something that needs a transaction Todo: Security on the client (oops)… Read More
  • Docker commands docker stop -p 8080:8080 -d --env-file docker.env pcre-id:latest docker stop 12d000d946a0 docker run --name :latest docker tag /:tag doc… Read More