Follow these steps to set up Git and push your local main branch to the remote origin:
- Initialize git in your project folder if you haven't already:
- Add all files:
- Commit the files:
git commit -m "Initial commit"
- Set the remote origin (replace with your repo URL):
git remote add origin <remote-url>
- Push main branch and set upstream:
Make sure you have the right permissions and SSH keys or access token set up if authentication is required.
Follow these steps to set up Git and push your local main branch to the remote origin:
git add .git commit -m "Initial commit"Make sure you have the right permissions and SSH keys or access token set up if authentication is required.