Get started by creating a new file or uploading an existing file. GIT recommend every repository include a README, LICENSE, and .gitignore.
Step 1: Create a new Angular Project and switched to angular project directory using "cd my-project" Step 2: Download and Install GIT Step 3: if ".git" and ".gitignore" files are not creRun "git init" command to generate Step 4: Execute below git command to commit locally: $ git status $ git add $ git commit -m "Initial commit"
$git branch -M master
Step 5: Login to Github and create a repository Step 6: to commit your file to github run below commands:
$ git remote add origin https://github.com/amitkumar1278/{repository-name}.git $ git remote add origin https://github.com/amitkumar1278/angular.git $ git push -u origin master
refresh repository page on github to see committed files.
=================================================================