Skip to content

Latest commit

 

History

History
29 lines (23 loc) · 690 Bytes

git.md

File metadata and controls

29 lines (23 loc) · 690 Bytes

Git notes

Commit to GitHub using ssh key

  1. generate ssh public/private keys
  2. put public key to github.com
  3. run ssh -T [email protected] to check if public key works
  4. under repo dir run git remote set-url origin [email protected]:<user>/<project>.git
  5. git push

Status

git status -u  # show individual files in untracked directories

Set configuration params

# check current values
git config user.name
git config user.email

# individual repo
git config user.name "Your Name"
git config user.email [email protected]

# global User name and Email (~/.gitconfig)
git config --global user.name "Your Name"
git config --global user.email [email protected]