Quick post: pushing your git source to github

Just switch to the root of the git source that you want to push on to github and hit the below command:
git push --mirror https://github.com/GIT-USERNAME/GIT-REPO-NAME.git

For example for my case it is:
git push --mirror https://github.com/yashs360/dril-localrepo.git

Note: you would just have to create the repository on www.github.com before you can start pushing to the repo.

Cheers.

Yash Sharma is a Big Data & Machine Learning Engineer, A newbie OpenSource contributor, Plays guitar and enjoys teaching as part time hobby.
Talk to Yash about Distributed Systems and Data platform designs.

Leave a Reply

Your email address will not be published. Required fields are marked *