Create Your First Git Repository And Push to GitHub Account
Create Your First Git Repository And Push to GitHub Account
GitHub is a popular platform for hosting and collaborating on code repositories. Whether you are new to coding or an experienced developer, knowing how to create a repository and push your code to GitHub is a crucial skill.
In this step-by-step Lab, I will guide you through the process of creating your first GitHub repository and pushing your code to your GitHub Account. By the end of this Lab, you will have the necessary skills to get started with version control, code hosting, and collaboration on GitHub. I will try my best to cover topics such as GitHub basics, repository creation, and pushing code to GitHub.
Youtube Video: https://youtu.be/pHLb3GMyNhI
GitHub Repo :https://github.com/waseemuddin/Git-for-beginners.git
$ mkdir Git-for-begineers
$ cd Git-for-begineers
$ git status
$ mkdir imges
$ mkdir js
$ mkdir css
$ mkdir project
$ touch css/front.css
$ touch js/mysim.js
$ touch index.php
$ git init
$ git status
$ git add .
$ git commit
Our local repository files are commited and now its time to push into remote repository
To push your code to remote repository, first you have to create the empty reposity on your github account
Got your github accunt profile and create new repository
Now its time to push your local repository to your remote repository means your Github account
As you see all local repository files/folders are now push to remote repository