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:-
- Initialize your folder with git init.
- You must have to add origin to push or pull.
( git remote add origin https://github.com/more03625/chat-app-frontend.git ) git branch -M main ( Create branch on git )
git add .
git push origin main
Error
- 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
- 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
0 comments:
Post a Comment