Git
Git is a version control system used for code collaboration, tracking code changes and who made them.
How to pull requests from Git.
git --version
git --version checks whether git is installed on your computer and what version is installed.
git config --user.name"yourname"
git config --user.name"yourname" sets the author's name linked to the commits.
git config --user.email"youremail"
git config --user.email"youremail" sets the email address linked to your commits.
git config --list
git config --list shows all git configuration settings currently applied to the system.
ls ~/.ssh
ls ~/.ssh looks for SSH folder in the home folder.
ss-keygen -t ed25519 -C"youremail"
ss-keygen -t ed25519 -C"youremail" generates private and public SSH keys.
eval "$(ssh-agent -s)"
eval "$(ssh-agent -s)" starts the ssh agentand sets the necessary environment variables in the current terminal session.
--unset
--unset is used to remove a setting.
ssh-add ~/.ssh/id_ed25519
ssh-add ~/.ssh/id_ed25519 allows git to use your key automatically without asking for the passphrase every time.
Top comments (0)