1. Say you have repo in github called testrepo
  2. Browse to a local directory – and clone the repo in there (by typing git clone https://…testrepo full url
  3. Now, you have an empty local repo – but it’s not traced by your local git. To do this, type:
  4. 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.

Anuj holds professional certifications in Google Cloud, AWS as well as certifications in Docker and App Performance Tools such as New Relic. He specializes in Cloud Security, Data Encryption and Container Technologies.

Initial Consultation

Anuj Varma – who has written posts on Anuj Varma, Hands-On Technology Architect, Clean Air Activist.