Know what is github push pull requests

Push to remote and pull to local.

Create a repository in github account
Keep note of the git repo url

Go to your computer local drive project folder, then open cmd from there and type

1
2
3
4
5
6
7
8
git init
git remote add origin <url of git repo>
git status //check if modified files waiting to push - red
git add .
git status //check all modified files are ready to push - green
git commit -m "<comment>" //check in but not yet pushed
//Make sure your machine ssh key is added under github > profile settings > SSH and GPG keys
git push -u origin master

add files to existing repo

1
2
3
4
5
git status
git add .
git status
git commit -m "some comment"
git push origin master

Copy from github to local folder

Create a folder on local drive
Open cmd from the folder

1
git clone <url of repo>

Latest file from git repo to local folder [if already copied]
make sure you cloned already the project from git repo

1
git pull origin master

Generate ssh key

Generating new ssh key

Add ssh key to github account

Github repo 1st setup

Share