You can use command line tools to import source code and its revision history to GitHub. If your code is stored locally on your computer and is tracked by Git or not tracked by any version control system (VCS), you can import the code to GitHub using GitHub CLI or Git commands.
![Using the command line to import source code - GitHub Docs](https://cdn-ak-scissors.b.st-hatena.com/image/square/c852e55126697503d2d6aa748d905fcfaf8eface/height=288;version=1;width=512/https%3A%2F%2Fgithub.githubassets.com%2Fimages%2Fmodules%2Fopen_graph%2Fgithub-logo.png)