Git යනු කුමක්ද?
Git යනු distributed version control system එකකි. ඔබගේ code හි වෙනස්කම් track කිරීමට, team members සමග collaborate කිරීමට, සහ ඕනෑම කිසිවකට ආපසු යාමට Git ඉතාමත් ප්රයෝජනවත් වේ.
GitHub යනු කුමක්ද?
GitHub යනු Git repositories host කිරීම සඳහා cloud-based platform එකකි. ලොව පුරා developers මිලියන ගණනක් GitHub භාවිතා කරති.
මූලික Commands
Repository නිර්මාණය කිරීම
Remote Repository සමග සම්බන්ධ වීම
Branch සෑදීම
Branch නිර්මාණය කිරීම නව features develop කිරීමේ හොඳ ක්රමයකි:
Pull Request
Branch එකේ වැඩ නිම වූ පසු, Pull Request (PR) එකක් ලෙස main branch ට merge කිරීම GitHub හි සාමාන්ය workflow ය.
ඉඟිය: හොඳ commit messages ලිවීමෙන් team members ට ඔබගේ වෙනස්කම් වටහා ගැනීම පහසු වේ.
සාරාංශය
git init— නව repository සෑදීමgit add— staging area ට files එකතු කිරීමgit commit— changes save කිරීමgit push— remote ට upload කිරීමgit pull— remote වෙනස්කම් download කිරීම