-
git init
-
git add .
-
git commit -m "Add all my files"
-
git remote add origin https://github.com/yourusername/your-repo-name.git
Upload of project from scratch require git pull origin master.
- git push origin master
To update a repo:
- git add "folder/filename"
- git status
- git commit -m "Add all my files"
- git remote set-url origin https://github.com/yourusername/your-repo-name.git
- git push origin master
Helpful commands:
- git reflog
- git reset --hard HEAD@{1}
- git reset .