Github Local server to Github PUSH



  1. 1.Create a new repository on GitHub. To avoid errors, do not initialize the new repository with README, license, or gitignore files. You can add these files after your project has been pushed to GitHub.
  2. 2. Open TerminalChange the current working directory to your local project.
  3. in my case "hellonode" is my Project Directory
  4. cd /hellonode/
  5. 3. Initialize the local directory as a Git repository.
    git init
    
  6. Add the files in your new local repository. This stages them for the first commit.
[root@localhost hellonode]#git add .
 

[root@localhost hellonode]#git commit -m "First Commit"


[root@localhost hellonode]# git remote add origin https://github.com/jskcbe/nodejs.git

[root@localhost hellonode]# git remote -v
origin  https://github.com/jskcbe/nodejs.git (fetch)
origin  https://github.com/jskcbe/nodejs.git (push)         (jskcbe is my github account)

[root@localhost hellonode]# git push origin master
Username for 'https://github.com': jskcbe
Password for 'https://jskcbe@github.com':
Counting objects: 9601, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (8929/8929), done.
Writing objects: 100% (9601/9601), 30.80 MiB | 679.00 KiB/s, done.
Total 9601 (delta 2088), reused 0 (delta 0)
remote: Resolving deltas: 100% (2088/2088), done.
To https://github.com/jskcbe/nodejs.git
 * [new branch]      master -> master
[root@localhost hellonode]#
The Code from your local Server is now pushed to the GitHub Repository..
Whenever there is a code change in your local directory, you can initiate a build with that using JENKINS

Installing Ingress Controller - Kubernetes

Installing the Ingress Controller Prerequisites Make sure you have access to the Ingress controller image: For NGINX Ingress controll...