Adding existing folders to GitHub - Windows

  1. Download and Install something like Git Bash
  2. Create a new repository on GitHub.                                                                                     
  3. Note:  To avoid errors, do not initialize the new repository with README, license, or gitignore files. 
  4. Open Git Bash and navigate to the parent directory of your folders
  5. Initialize the local directory as a Git repository.
  6. git init
  7. Add the files in your new local repository. This stages them for the first commit.
  8. git add .
  9. Commit the files that you've staged in your local repository.
  10. git commit -m "your message"

  11. At the top of your GitHub repository's Quick Setup page, click to copy the remote repository URL. In the Command prompt, add the URL for the remote repository where your local repository will be pushed.
  12. git remote add origin remote repository URL
    # Sets the new remote
    git remote -v
    # Verifies the new remote URL
  13. Push the changes in your local repository to GitHub.

  14. git push origin master
    # Pushes the changes in your local repository up to the remote repository you specified as the origin


Popular posts from this blog

XPATH for IE / internet explorer

RPA - Blue Prism, OpenSpan, Automation Anywhere vs UIPath