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
Latest file from git repo to local folder [if already copied]
make sure you cloned already the project from git repo
Generate ssh key
Generating new ssh key
Add ssh key to github account