How to push changes to Github using the command line?

 Using Command line to PUSH to GitHub



  1. Creating a new repository. 
  2. Open your Git Bash. 
  3. Create your local project on your desktop directed towards a current working directory. 
  4. Add the file to the new local repository. 
  5. Add the URL copied, which is your remote repository to where your local content from your repository is pushed.
  6. Commit the files staged in your local repository by writing a commit message.
  7. Copy your remote repository's URL from GitHub.
  8. Add the URL copied, which is your remote repository to where your local content from your repository is pushed.
  9. Push the code into your local repository GitHub.
  10. View your files in your repository hosted on GitHub.


Comments

Popular posts from this blog

How to create a GitHub repository?