Web development
Remotes, Fetch, and Push
Updated Oct 28, 2026
A remote refers to another repository location. Fetch retrieves remote information without merging it into your current branch. Push sends local commits to a remote branch. Confirm the remote and bran
What you’ll learn
Understand and practise remotes, fetch, and push.
Explanation
A remote refers to another repository location. Fetch retrieves remote information without merging it into your current branch. Push sends local commits to a remote branch. Confirm the remote and branch before pushing, and follow the project’s collaboration rules.
Remote ជាទីតាំង repository មួយទៀត។ Fetch ទាញព័ត៌មានដោយមិន merge ដោយស្វ័យប្រវត្តិ។ Push ផ្ញើ commits ទៅ remote branch។
Example
Use git remote -v to inspect configured remote addresses.
Practice
Does git fetch automatically merge into the current branch?
Answer and explanation
Show answer / បង្ហាញចម្លើយ
No. Fetch updates remote information without merging it into your branch.
Quick recap
A remote refers to another repository location.