GIT Essentials
Install
sudo apt install git
Config
Global: config settings are stored under ~/.gitconfig
git config --list --global
System: config setting are stored under /etc/gitconfig
git config --list --system
Local: config setting are stored under *repo*/.git/config
Set Name
Locally
git config user.name "Your Name"
Globally
git config --global user.name "Your Name"
Set E-Mail
Locally
git config user.email "Your@Email.Com"
Globally
git config --global user.email "Your@Email.Com"
Inspect details
cat ~/.gitconfig
Initialize Empty Repo
Ensure you are inside the directory you want
git init
ls -a
. .. .git
Related
- Specify an SSH key for git push for a given Domain
- Create Basic Self Hosted Remote Git Repo
- YAML Essentials
- Ansible Essentials
- Run Ansible through a remote server to other servers
- Linux Routing Essentials
- Working With SSH Keys
- LUKS: Linux Unified Key Setup Essentials
- UFW Essentials
Links
- https://git-scm.com