I had a prebuilt Node.js application. It is nothing fancy, but I wanted to create a repository for it. This is simply a screenshot of the commands used to do this.
-bash-4.1$ cd arch/ -bash-4.1$ ls node_modules package-lock.json server.js -bash-4.1$ git init Initialized empty Git repository in /homelocal/node/arch/.git/ -bash-4.1$ git add . -bash-4.1$ git commit -m "First commit" [master (root-commit) c2baf67] First commit 261 files changed, 40378 insertions(+), 0 deletions(-) create mode 120000 node_modules/.bin/mime create mode 100644 node_modules/accepts/HISTORY.mdcreate mode 100644 node_modules/vary/package.json create mode 100644 package-lock.json create mode 100644 server.js -bash-4.1$ git remote add origin https://github.com/appcrawler/poc.git -bash-4.1$ git remote -v origin https://github.com/appcrawler/poc.git (fetch) origin https://github.com/appcrawler/poc.git (push) -bash-4.1$ #prefix the https:// part with your github username -bash-4.1$ vi .git/config -bash-4.1$ git pull origin master Password: warning: no common commits remote: Counting objects: 4, done. remote: Compressing objects: 100% (3/3), done. remote: Total 4 (delta 0), reused 0 (delta 0), pack-reused 0 Unpacking objects: 100% (4/4), done. From https://github.com/appcrawler/poc * branch master -> FETCH_HEAD Merge made by recursive. LICENSE | 201 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ README.md | 2 + 2 files changed, 203 insertions(+), 0 deletions(-) create mode 100644 LICENSE create mode 100644 README.md -bash-4.1$ git push origin master Password: Counting objects: 317, done. Delta compression using up to 2 threads. Compressing objects: 100% (303/303), done. Writing objects: 100% (316/316), 305.08 KiB, done. Total 316 (delta 62), reused 0 (delta 0) remote: Resolving deltas: 100% (62/62), done. To https://[email protected]/appcrawler/poc.git a9171ca..a99745e master -> master -bash-4.1$