Once you’ve created a new repo in github
- Say you have repo in github called testrepo
- Browse to a local directory – and clone the repo in there (by typing git clone https://…testrepo full url
- Now, you have an empty local repo – but it’s not traced by your local git. To do this, type:
-
git init git add README.md (or whatever file you may already have in the local folder) git commit -m "test commit" git remote add origin https://github.com/yourgithub/testrepo.git git push -u origin main NOTE: On the commit, if you do not provide a comment, you will be prompted (vi) to enter one. type any text 'test commit' and esc wq! to save and exit vi.
Need an experienced AWS/GCP/Azure Professional to help out with your Public Cloud Strategy? Set up a time with Anuj Varma.
Leave a Reply