- Go github, create new repo
- Copy ssh/https link
- Go to your project folder
4.
git clone <paste link here>
and all project will be downloaded to new folder with same name as project is - Or you can set name of this folder
git clone <paste link here> newfolder
- Go your project folders
- Make new folder, like
mkdir ./myNewProject
- Go into, like
cd ./myNewProject
- Create git repo for this folder
git init
- Make your files, commits, etc
- Go github, create new repo
- Copy ssh/https link
- Run in this folder
git remote add origin <paste link here>
- Push everything to the repo
git push origin master
- Add all you made to be commited:
git add .
- Commit it:
git commit -m "New feature has been made, and some bugs fixed"
- Push to a repo:
git push origin master
git stash
hide all of changes in stash - actually just trick