Quickupdate

  • Home
  • Top Trending
    • Top Android Apps
    • Top Ios Apps
  • Featured
  • About Us
  • Contact us
  • Privacy Policy and Disclaimer

Wednesday, 23 June 2021

How to upload the existing folder on GitHub Or GitLab?

 Developers     June 23, 2021     No comments   

These are the steps to upload the existing folder on GitHub Or GitLab.

Whenever you want to push your existing folder to git or GitHub you must:-

  1. Initialize your folder with git init.
  2. You must have to add origin to push or pull.
    ( git remote add origin https://github.com/more03625/chat-app-frontend.git )
  3. git branch -M main ( Create branch on git )
  4. git add .
  5. git push origin main

Error

  1. error: failed to push some refs to 'https://github.com/more03625/react-bootstrap-crud-app.git'
    • The branch is not present on GitHub or on local
  2. error: failed to push some refs to 'https://github.com/more03625/dsa-cracker.git' Make sure you are pushing to the right branch or is there any typo. check out your current working branch name with this command.


Few Git Commands

*) To Check your current account information

        git config --global user.email
        git config --global user.name
       
 *) Set New account information
       
        git config --global user.email yournew@email.com
        git config --global user.name yournewgoodname

  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg
Email ThisBlogThis!Share to XShare to Facebook
Newer Post Older Post Home

0 comments:

Post a Comment

Popular Posts

  • How to upload the existing folder on GitHub Or GitLab?
    These are the steps to upload the existing folder on GitHub Or GitLab. Whenever you want to push your existing folder to git or GitHub you m...

Categories

  • FAANG (2)
  • Javascript (6)
  • Node (1)
  • Project Management (1)
  • React (9)
  • SQL (1)
  • Testing (1)

Blog Archive

  • January 2023 (1)
  • January 2022 (1)
  • November 2021 (3)
  • October 2021 (3)
  • August 2021 (1)
  • July 2021 (7)
  • June 2021 (12)
  • February 2021 (1)
  • January 2021 (1)
  • January 2020 (3)
  • August 2019 (3)