That’s how you push the main branch for the first time. If you have not configured Git to use a credential helper, you will be asked for your GitHub username and PAT (personal access token): Initially, it was “master”, so I ran git branch -M main to change it. (“main” is the name of that branch for me). To finally push the repo, run git push -u origin To confirm the remote has been added, run git remote -v: To push the main repo, you first have to add the remote server to Git by running git remote add. git commit -m ‘commit message’ to save the changes you made to those files. to add all your files that the local repository
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |