Git Commands
See status:
git status
Add more than one file to the git repo:
git add .
git add *
Commit files to local repo:
git commit -m "message to commit"
Push changes to remote repo:
git push origin master
Create Local Git Repository
Create a folder for the git repository then use the following command to initialise it as a git repo:
git init
GitHub
Once git is installed and repo is cloned set the global username and password to allow automatic push and pull to work:
- git config --global user.name "Your Name"
- git config --global user.email "youremail@yourdomain.com"