cli
Login
- Configure Git in your Workspace
git config [--global] user.name "your_username"
git config [--global] user.email "your_email_address@example.com"
git config [--global] --list
-
Make SSH Credentials
-
Update Online Github Settings
Copy id_rsa.pub to Account Settings > SSH and GPG Keys
common commands
git config --list
git remote show origin
# remove cached files
git rm --cached <file>
git rm -r --cached <folder>
git rm -r --cached .
git add .
git commit -am "Remove ignored files"
# reset hard a file
git checkout -- filename