Repositories, commits and history
git config --global user.name "Your Name"
git config --global user.email you@company.com.au
git init my-scripts && cd my-scripts
git add backup.sh
git commit -m "Add nightly backup script"
git log --oneline --graph
git diff # unstaged changes
git diff --staged # what will be committed
Good commit messages say why: "Raise PHP memory limit to fix report timeout", not "fix".
.gitignore keeps secrets, build output and logs out of the repository. Never commit passwords or keys — if you do, rotate them; deleting the file does not remove it from history.
Rating
0
0
There are no comments for now.